This function should give the average of a list, but gives a wrong answer for [2, 4, 6] (it gives… | StemPy Lab