SyntaxFix
Write A Post
Hire A Developer
Questions
I want to add just another approach
import itertools,operator list(itertools.accumulate(l,operator.add)).pop(-1) / len(l)