Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #average #list #elements #python
ADD COMMENT
Topic
Name
3+7 =