l= [[1,11],[2,22],[3,33],[4,44]]resultado = [] for e in l: resultado.append([e[1], e[0]]) print(resultado)
Standard input is empty
[[11, 1], [22, 2], [33, 3], [44, 4]]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!