SyntaxFix
Write A Post
Hire A Developer
Questions
If you have the numpy package:
numpy
In [16]: x = [1,2,3,4] ...: import numpy ...: numpy.average(x) Out[16]: 2.5