The program is an illustration of methods
Function are collections of named code blocks, that are executed when called or evoked.
The median function written in Python, where comments are used to explain each line is as follows:
#This defines the function
def medianValue(myList, n):
#This determine the median element for odd list elements
if n%2 == 1:
medianElement = float(myList[int((n - 1)/2)])
#This determine the median element for even list elements
else:
medianElement = (float(myList[int(n/2)]) + float(myList[int(n/2) - 1]))/2
#This returns the median element
return medianElement
Read more about functions at:
https://brainly.com/question/26180959