Question #232596

Write a python program that takes three numbers from the user and returns the middle
of the three numbers, i.e., the number which is not the smallest and not the largest. You
can assume that the three numbers are different.
Sample Input:
Number 1: 12
Number 2: 90
Number 3: 67
Sample Output:
67

Expert's answer

print(sorted([int(input()), int(input()), int(input())])[1])
LATEST TUTORIALS
APPROVED BY CLIENTS