FalseEasy Examples

Boolean literal representing false/0

Boolean False value

A basic demonstration of the False literal and its behavior in conditions.

python
result = False
print(result)
print(type(result))

if not result:
    print("False is falsy")
Expected Output
False
<class 'bool'>
False is falsy

False is one of Python's two boolean literals. It evaluates as falsy in conditions and equals the integer 0.

False in comparisons

Comparing False with other values.

python
print(False == 0)
print(False == "")
print(False is 0)
print(bool(0))
print(bool([]))
Expected Output
True
False
False
False
False

False equals 0 in value comparison but is not identical to it. Empty containers and zero values are falsy but not equal to False.

Want to try these examples interactively?

Open Easy Playground