for index in range(len(numbers) // 2): pos = len(numbers) - index - 1 numbers[index], numbers[pos] = numbers[pos], numbers[index]