+ 5
list = [1,2,3,4,5] n = 3 sum(list[0:n]) / len(list[0:n]) this is going to take the first n elements only and return their average.
1st Oct 2017, 4:08 AM
Leno
Leno - avatar