How to calculate moving average in Python 3?,"print(sum(map(int, x[num - n:num])))"