python 3.1 ( Please provide me both the function and the main program and also the output to make sure the program does work)

*python 3.1 ( Please provide me both the function and the main program and also the output to make sure the program does work) Here a median is the middle element of a sorted list if the number of elements is odd, and the average of the two middle elements if the number of elements is even. You may use Python's built-in sort method to sort the contents of the list after they have been read from the file.