compare number in python code example
Example 1: python compare numbers
if 5 > 2:
print("Five is greater than two!")
Example 2: compare int in Python
1 == 2
#OR
1 is 2
if 5 > 2:
print("Five is greater than two!")
1 == 2
#OR
1 is 2