Python False Keyword
The Python False keyword is a boolean value. It is returned from a comparison operator and when the result of comparison is False. It is also same as 0 (True is same as 1).
Comparison Scenarios with False Value
In the example below, different comparison scenarios are discussed that lead to False value.
x = [10, 20, 30] y = x z = [10, 20, 30] print(10 < 5) print(10 == 5) print(10 != 10) print(10 + 5 > 20) print(x is z) print(x is not y) print(10 in [1, 5, 15, 20]) print(10 not in [1, 5, 10, 15])
The output of the above code will be:
False False False False False False False False
❮ Python Keywords