Python False Keyword
Definition and Usage
The False
keyword is a Boolean value, and
result of a comparison operation.
The False
keyword is the same as 0 (True
is the same as 1).
More Examples
Example
Other comparisons that returns False:
print(5 > 6)
print(4 in [1,2,3])
print("hello" is "goodbye")
print(5 == 6)
print(5 == 6 or 6 == 7)
print(5 == 6 and 6
== 7)
print("hello" is not "hello")
print(not(5 == 5))
print(3 not in [1,2,3])
Try it Yourself »
Related Pages
The True
keyword.
Read more about comparisons in our Python Operators Tutorial.