Suppose I have list like
L = [(2,3), (4,5), (6,7)]
What's the easiest way to transform it to this list:
L'=[(3,2),(5,4),(7,5)]
i.e. swap the coordinates in each entry.
| 1 | initial version |
Suppose I have list like
L = [(2,3), (4,5), (6,7)]
What's the easiest way to transform it to this list:
L'=[(3,2),(5,4),(7,5)]
i.e. swap the coordinates in each entry.
| 2 | No.2 Revision |
Suppose I have list like
L = [(2,3), (4,5), (6,7)]
What's the easiest way to transform it to this list:
L'=[(3,2),(5,4),(7,5)]
i.e. swap the coordinates in each entry.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.