a = [-1,4,6,12,15,-6,22] tmp = sorted(a) min = tmp[0] max = tmp[-1] print("bereik", max - min)