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 do you write code to implement a recursive fibonacci algorithm?


Define a function that takes in the age of the user and adds it to an output sentence such as "You are ..... old".


Write a program that can convert between celcius and farenheit temperature scales


Write a recursive function that takes any integer n and prints the nth Fibonacci number.