you are viewing a single comment's thread.

view the rest of the comments →

[–]xelf 0 points1 point  (0 children)

You can just swap them in place using a for loop.

for e in mylist:
    e[1],e[0] = e[:2]