Create a program that takes in two numbers and returns the highest of the two

print("Enter two numbers. I will tell the highest of the two.") num1 = input("Number 1: ") num2 = input("Number 2: ") if (num1 == num 2) print ("They are the same".) else if (num1 > num2) print (num1) else print (num2)

DH

Related Python Mentoring answers

All answers ▸

How would you loop over every key and value in a python dictionary?


What is the difference between a list and an array?


How does a for loop work in Python?


How can you take a list of numbers and add 3 to every number in the list using only one line of code?