Booleans represent one of two values: True or False . Boolean Values. In programming you often need to know if an expression is True or False . This can be done with casting. Python is an object-orientated language, and as such it uses classes to define data types, including its primitive types.