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 ▸

What is the difference between DFS and BFS? Where can I apply each?


Write a function that takes a list of numbers as input, and outputs the average of the numbers. The function should catch any errors.


What is the difference between a FOR loop and WHILE loop and how do I write them?


What's the difference between a local and a global variable?