1#program to get the highest number of an input
2
3#take input from the user
4value1=input(int("Enter the Value 1"))
5value2=input(int("Enter the Value 2"))
6value3=input(int("Enter the Value 3"))
7
8#now compare the values
9if (value1>value2) and (value1>value3):
10 largest=value1
11elif (value2>value1) and (value2>value3):
12 largest=value2
13else:
14 largest=value3
15
16#print the largest value
17print("The largest value is",largest)
1# Python program to find the largest number among the three input numbers
2
3# change the values of num1, num2 and num3
4# for a different result
5num1 = 10
6num2 = 14
7num3 = 12
8
9# uncomment following lines to take three numbers from user
10#num1 = float(input("Enter first number: "))
11#num2 = float(input("Enter second number: "))
12#num3 = float(input("Enter third number: "))
13
14if (num1 >= num2) and (num1 >= num3):
15 largest = num1
16elif (num2 >= num1) and (num2 >= num3):
17 largest = num2
18else:
19 largest = num3
20
21print("The largest number is", largest)