Python program to find the greatest of the three numbers

x = int(input("Insert first number: ")) y = int(input("Insert second number: ")) z = int(input("Insert third number: ")) print("The maximum number is : ", end="") if y <= x >= z: print(x) elif x <= y >= z: print(y) elif x <= z >= y: print(z)

 

Output:

Insert first number: 12
Insert second number: 2
Insert third number: 25
The maximum number is : 25