import numpy as np E = np.array([0, 2, 4, 5, 3, 1]) i_max = np.argmax(E) print('i_max =', i_max) print('Maksimal elementverdi:', E[i_max])