Less than:
my_number = int(input("Enter a number: "))
if my_number < 100:
print(my_number, "is less than 100")
python if.py
Equal to:
my_number = int(input("Enter a number: "))
if my_number == 100:
print(my_number, "== 100")
if my_number == 74:
print(my_number, "== 74")
python if.py
Not equal to:
my_number = int(input("Enter a number: "))
if my_number != 100:
print(my_number, "!= 100")
if my_number != 74:
print(my_number, "!= 74")
python if.py