AI_Astronaut
12/12/2019 - 6:11 AM

Mean method ( More Like the average )

# Python Program illustrating 
# numpy.mean() method 
import numpy as np 
	
# 1D array 
arr = [4, 2, 2, 2, 2] 

print("arr : ", arr) 
print("mean of arr : ", np.mean(arr))