Run
import numpy as np #initialize array A = np.array([[2, 1], [5, 4]]) #compute mean output = np.mean(A) print(output)
Output