Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


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 below example, different comparison scenarios are discussed that lead to False value.

print(10 < 5)

print(10 == 5)

print(10 != 10)

print(10 + 5 > 20)

print(10 is 5)

print(10 is not 10)

print(10 in [1, 5, 15, 20])

print(10 not in [1, 5, 10, 15])

print('hello' is not 'hello')

print(10 is 5 or 'hello' is not 'hello')

print(10 is 5 and 'hello' is not 'Hello')

The output of the above code will be:

False
False
False
False
False
False
False
False
False
False
False

❮ Python Keywords