Mega Code Archive

 
Categories / Python Tutorial / Operator
 

Standard comparison operators return a Boolean value indicating the truthfulness of the expression

print 2 < 4 print 2 == 4 print 2 > 4 print 6.2 <= 6 print 6.2 <= 6.2 print 6.2 <= 6.20001