Boolean Value in Python

Automatic Boolean Conversions

NOTE: The use of bool is hardly ever required in an if statement. This is just to demonstrate how decision structures work to coerce a boolean value from an object.

int

str

float

list