The following are defined as having false values in Python : Boolean : Data Type PYTHON TUTORIALS


PYTHON TUTORIALS » Data Type » Boolean »

 

The following are defined as having false values in Python


None
False (Boolean)
Any numeric zero:
(integer)
0.0 (float)
0L (long integer)
0.0+0.0(complex)
"" (empty string)
[] (empty list)
() (empty tuple)
{} (empty dictionary)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Data Type
» Boolean