# 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))