The centered average of a list of numbers is the arithmetic meanof all the numbers in the list, except for the smallest and largestvalues. If the list has multiple copies of the smallest or largestvalues, only one copy is ignored when calculating the mean. Forexample, given the list [1, 1, 5, 3 5, 10, 8, 7], one 1 and 10 areignored, and the centered average is the mean of the remainingvalues; that is, 5.2. Use the function design recipe to develop afunction named centered_average. The function takes a list ofintegers. (Assume that the list has at least three integers). Thefunction returns the centered average of the list. Hint: In thisexercise you are permitted and encouraged to use Python's min andmax functions.
**** YOU CANNOT USE THE FOLLOWING:
list slicing (e.g., lst[i : j] or (lst[i : j] = t) ï‚· the delstatement (e.g., del lst[0]) ï‚· Python's built-in reversed andsorted functions. ï‚· any of the Python methods that provide listoperations; e.g., append, clear , copy , count, extend, index,insert, pop, remove, reverse and sort ï‚· list comprehensions