I want to add just another approach
import itertools,operatorlist(itertools.accumulate(l,operator.add)).pop(-1) / len(l)
I want to add just another approach
import itertools,operatorlist(itertools.accumulate(l,operator.add)).pop(-1) / len(l)