import numpy as np a = np.arange(6).reshape(2,3) + 10 print(a) index = np.unravel_index(np.argmax(a), a.shape) print(index) print(a[index])