Answer to Question #232596 in Python for Assignment

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
1
Expert's answer
2021-09-02T16:46:47-0400
print(sorted([int(input()), int(input()), int(input())])[1])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS