import numpy as np M = np.loadtxt('klima.txt', delimiter=' ') year = M[:, 0] temp = M[:, 1] tMax = np.argmax(temp) yMax = int(year[tMax]) print("Aaret", yMax,"ble det maalt", temp[tMax]) tMin = np.argmin(temp) yMin = int(year[tMin]) print("Aaret", yMin,"ble det maalt", temp[tMin])