Python Function Reference

bool
Return a Boolean value, i.e. one of True or False.
Python 3.13
bool(x)
Examples
Python 3.13
>>> bool(0)
False
Python 3.13
>>> bool([])
False