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 ▸

Creating string from multiple strings(or characters)


Create an algorithm that can be used as a guessing game. Make sure to import random at the start.


Whats is the difference between a function and a procedure?


Write a recursive function to find the factorial of a number n.