Apr-27-2017, 08:19 PM
I'm trying to create a program that will allow the user to input 3 values and have the program state the highest value.
The error:
line 7, in <module>
if num1>(num2,num3):
TypeError: '>' not supported between instances of 'int' and 'tuple'
The error:
line 7, in <module>
if num1>(num2,num3):
TypeError: '>' not supported between instances of 'int' and 'tuple'
print("This is a program that will return your largest value") num1 = int(input("Please enter your first number: ")) num2 = int(input("Please enter your second number: ")) num3 = int(input("Please enter your third number: ")) if num1>(num2,num3): print("Your largest value is:", num1) if num2 > (num1,num3): print("Your largest value is: ", num2) else: print("Your largest value is: ", num3)