Median of three Values

Description:

Write a function that takes three numbers as parameters, and returns the median value of those parameters as its result. Include a main program that reads three values from the user and displays their median. Hint: The median value is the middle of the three values when they are sorted into ascending order. It can be found using if statements, or with a little bit of mathematical creativity Refer sample input and output for formatting specification. All float values are displayed correct to 2 decimal places. All text in bold corresponds to input and the rest corresponds to output TEST CASE 1 INPUT 9 12 22 OUTPUT 12

Program :

a=int(input())
b=int(input())
c=int(input())
def median(x,y,z):
m1=min(x,y,z)
m2=max(x,y,z)
print ((x+y+z)-m1-m2)
median(a,b,c)