I have a tuple/list inside a list like this:
[(\'foo\',\'bar\'),(\'foo1\',\'bar1\'),(\'foofoo\',\'barbar\')]
What is the fastest way in pyt
Using a list comprehension I find more elegant and understandable to use separate variables instead of indices for a single variable as in the solution provided by @iabdalkader:
[(b, a) for a, b in mylist]