In Python any non-zero integer value is true; zero is false. : Boolean : Data Type PYTHON examples


PYTHON examples » Data Type » Boolean »

 

In Python any non-zero integer value is true; zero is false.


In Python any non-zero integer value is true; zero is false.

a = 
if a:
   print "Here"
   
a = 2

if a:
   print "There"        

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Data Type
» Boolean