please excuse me, but I didn’t understand a thing in this one!
Create a function called
middle_element that has one parameter named
If there are an odd number of elements in
lst , the function should return the middle element. If there are an even number of elements, the function should return the average of the middle two elements.