Answers for "how to find the average of values in an array python"

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
4

mean of a list python

import numpy as np
np.mean(list)
np.std(list)
Posted by: Guest on January-23-2021

Code answers related to "how to find the average of values in an array python"

Python Answers by Framework

Browse Popular Code Answers by Language