number1 = int(input("Enter a number:")) number2 = int(input("Enter a number:")) number3 = int(input("Enter a number:")) if number1 > number2 and number3: print("The highest value is", number1) elif number2 > number1 and number3: print("The highest value is", number2) elif number2> number2 and number1: print("The highest value is", number3) else: print("The highest value is", number3)