true and false value : Boolean « Data Type « Python Tutorial






print True 
print False 
print True == 1 
print False == 0








2.1.Boolean
2.1.1.true and false value
2.1.2.Python accepted almost anything in a boolean context
2.1.3.The following are defined as having false values in Python
2.1.4.using Booleans numerically