Mega Code Archive
Categories
/
Python Tutorial
/
Buildin Function
Python objects have an inherent True or False value
print bool(1) print bool(True) print bool(0) print bool('1') print bool('0') print bool([]) print bool ( (1,) )