Booleans are binary, either True or False.
Falsyness
Other data types can act as Booleans based on whether they are empty.
bool('Hi') -> Truebool('') -> Falsebool(123) -> Truebool(0) -> False
Booleans are binary, either True or False.
Other data types can act as Booleans based on whether they are empty.
bool('Hi') -> Truebool('') -> Falsebool(123) -> Truebool(0) -> False