Python False Keyword
Definition and Usage
False Keyword is a boolean value, which is the result of a comparison operation.
False Keyword is equivalent to 0 (True is equivalent to 1).
More Examples
Example
Other comparisons that return 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])
Related Pages
Please visit our عناصر التشغيل في Python Learn more about comparison in Chinese.