Python objects have an inherent True or False value : Bool : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Bool »

 

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,) )



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Bool