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