human
Write me a Python code to find the median of three numbers given the following:
Write a function to find the median of three numbers. Here is a solution in Python:
assistant
#Here is Python code to find the median of three numbers.
 def median_numbers(a,b,c):
 if a > b:
    if a < c:
        median = a
    elif b > c:
        median = b
    else:
        median = c
 else:
    if a > c:
        median = a
    elif b < c:
        median = b
    else:
        median = c
 return median