methodbut we haven' covered that yetso we won' use it here extend the averages program with block of code that sorts the list of numbers--efficiency is of no concernjust use the easiest approach you can think of once the list is sortedthe median is the middle value if the list has an odd number of itemsor the average of the two middle values if the list has an even number of items calculate the median and output that along with the other information this is rather trickyespecially for inexperienced programmers if you have some python experienceyou might still find it challengingat least if you keep to the constraint of using only the python we have covered so far the sorting can be done in about dozen lines and the median calculation (where you can' use the modulus operatorsince it hasn' been covered yetin four lines solution is provided in average _ans py