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 ▸

Sort a given input of lowercase letters alphabetically


When to use a dectionary or a list


Write a function s(n) that will return a list of the first n squares.


Explain why creating a list of several instances of one element using something like my_list = [a] * 5 can result in strange behaviour