Answers for "python code to take average of 20 elements in a list at a time"

12

average value of list elements in python

# Example to find average of list
number_list = [45, 34, 10, 36, 12, 6, 80]
avg = sum(number_list)/len(number_list)
print("The average is ", round(avg,2))
Posted by: Guest on February-14-2020

Code answers related to "python code to take average of 20 elements in a list at a time"

Python Answers by Framework

Browse Popular Code Answers by Language