Python Tutorial for Beginners 10 - Boolean, Comparison Operators and Logical Operators in Python

preview_player
Показать описание
In this video I am going to show How to use Boolean, Python Comparison Operators and Python Logical Operators.
So What is a Boolean value ? Boolean values in Python are the two constant objects which are False and True.

Python Comparison Operators
Operator Name Example Result
== Equal x==y True if x is exactly equal to y.
!= Not equal x!=y True if x is exactly not equal to y.

Python Logical Operators
Operator Example Result
and (x and y) is True if both x and y are true.
or (x or y) is True if either x or y is true.
not (x not y) If a condition is true then Logical not operator will make it false.

#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Hello my brother! I just wanted to stop by and say thank you for such great videos! For many beginners on Python, this is an excellent series of videos. In detail, well explained, to the point. Thank you my brother, may you continue to upload more great videos of Python!

f_x
Автор

your python tutorials are the best, keep it! On a scale from 1 to 10, you're an 11.

hassannittofornah
Автор

I've been following your python tutorials and you are really doing a great job on these . I just want to know whether you will be covering tkinter and matplotlib modules during these tutorials. If not i request you to cover those topics as I could not find a good online material for those. Anyway man keep up the great work and Thanks!!

ankitdubey
Автор

Bro I just love you
Even I am following this in 2020 its a great help

mezbahsaklain
Автор

Why are we using console instead of terminal? What is the difference between two of them??

HarshaMaddur
Автор

Why "isalnum" giving true for 'hello' as there is no numbers in 'hello'??

HarshaMaddur
Автор

Hello. Can someone help with the below task. I need to this code to return suitable password If answer is true (3 or more)





user = input(" Enter your Password ")

haveLength = "false"
upCase = "false"
lowCase = "false"
haveNum = "false"
true = 0
#Answer true or false.
haveLength = input(" Does your password contain atleast six characters(? ")
true += 1
print(haveLength)
upCase = input(" Does the password entered contain upercase letter(s)? ")
true += 1
print(upCase)
lowCase = input(" Does the your password include lowercase letters? ")
true += 1
print(lowCase)
haveNum = input(" Does your password have contain numbers? ")
true += 1
print(haveNum)
bool(true)

if true >= 3:
print(" This is a Suitable password" )
else:
print(" Try a more stronger password ")

pmanmusic
visit shbcf.ru