direction = array[1] - array[0] ### Ex: 4-2 = 2 so we know the direction is increasing. ### Ex: 2-4 = -2 so we know the direction is decreasing. for i in range(2, len ...