Python Comparison Operator :
a = 10 b = 20 print(" a == b : {0}".format(a==b)) print(" a != b : {0}".format(a!=b)) print(" a > b : {0}".format(a>b)) print(" a < b : {0}".format(a<b)) print(" a >= b : {0}".format(a>=b)) print(" a <= b : {0}".format(a<=b))
Output :