logically combine the Boolean results : Boolean Operators « Operator « Python Tutorial






print 2 < 4 and 2 == 4
print 2 > 4 or 2 < 4
print not 6.2 <= 6
print 3 < 4 < 5








4.3.Boolean Operators
4.3.1.Boolean Operators
4.3.2.Understanding the Peculiar Nature of and and or
4.3.3.Introducing or
4.3.4.logically combine the Boolean results
4.3.5.Standard Type Boolean Operators