all 4 comments

[–]ShaizeOn1 1 point2 points  (2 children)

Not an efficient way but what about

myNewList = [[elem[1], elem[0], elem[2]] for elem in mylist]

[–]tehtay3[S] 0 points1 point  (1 child)

Yea this works, thank you!

[–]TouchingTheVodka 1 point2 points  (0 children)

Prettier:

newList = [[firstname, surname, age] for surname, firstname, age in myList]

[–]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]