Beginning Python

Less than:

if.py
my_number = int(input("Enter a number: "))

if my_number < 100:
    print(my_number, "is less than 100")
$
python if.py
Enter a number: 74
74 is less than 100

Equal to:

if.py
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
Enter a number: 74
74 == 74

Not equal to:

if.py
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
Enter a number: 74
74 != 100