Boolean Type
True and False (note the capital T and F)
is_raining = True
is_sunny = False
print(bool(1)) # Output: True
print(bool(0)) # Output: False
print(type(is_raining)) # Output: <class 'bool'>
True and False (note the capital T and F)
is_raining = True
is_sunny = False
print(bool(1)) # Output: True
print(bool(0)) # Output: False
print(type(is_raining)) # Output: <class 'bool'>