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 can be used to iterate through a list in python?


Implement a fibonacci function which calculates the nth number of the fibonacci sequence.


What is the difference between a float and an integer variable type?


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