Convert a value to a Boolean, using the standard truth testing procedure. : Bool : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Bool »

 

Convert a value to a Boolean, using the standard truth testing procedure.


print bool('this is a test')
print bool(42)
print bool('')
print bool(0)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Function
» Bool