Comparison returns True or False
examples/boolean/compare_equals.py
a = "42" b = 42 print(a) # 42 print(b) # 42 print(a == b) # False print(a != b) # True print(b == 42.0) # True print(None == None) # True print(None == False) # False
a = "42" b = 42 print(a) # 42 print(b) # 42 print(a == b) # False print(a != b) # True print(b == 42.0) # True print(None == None) # True print(None == False) # False