# your code goes heremas = [1,2,3,4,5,6,7,8,9,10]mas= [j for i in zip(mas[1::2], mas[::2]) for j in i]print(mas)
Standard input is empty
[2, 1, 4, 3, 6, 5, 8, 7, 10, 9]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!