Home >>Python Keywords >Python False Keyword

Python False Keyword

Python False Keyword

The False keyword is a Boolean value (a value of class type bool) and case-sensitive in python, and false is the result of a comparison operation is the same as 0 (true is the same as 1).

Here is an example of Python False Keyword:

print(8 > 10)

Output:
False
Example 2:

print(6 > 8)
print(6 in [1,2,3,4,5])
print("hello" is "phptpoint")
print(6 == 8)
print(7 == 8 or 7 == 8)
print(6 == 8 and 7 == 8)
print("hello" is not "phptpoint")
print(not(8 == 8))
print(5 not in [1,2,3,4])

Output:
False
False
False
False
False
False
True
False
True

No Sidebar ads