We learned about using if and else loops help control the flow of a program, and to execut specific code under specific conditions.
#Write a Python program that takes two numbers as input from the user. The program should: Determine if the numbers are equal, If the numbers are different, print which number is larger.
num1 = int(input("Please input a number: "))
num2 = int(input("Please input another number: "))
if num1 == num2:
print("They are equal")
else:
if num1 >= num2:
print(num1, "is larger.")
else:
print(num2, "is larger.")