I have the list l
, with (x,y)
pairs:
print(l)
[(4.476784, 50.820377), (4.466914, 50.83413), (4.466898, 50.843526), (4.461776, 50.84864), (4.460908, 50.850731), (4.461256, 50.851948)...]
I would like to switch the positions of the elements; that is, from (x,y)
to (y,x)
. How could I do this? Thanks in advance.