list of tuples with dynamic change in position

sajuptpm sajuptpm at gmail.com
Mon Sep 6 10:54:23 EDT 2010


I have a list of tuples l = [(('s','a'),(5,9)), (('u','w'),(9,2)),
(('y','x'),(3,0))]
some functions using this list and fetch data using index l[0][1], l[1]
[1]
I need to change position of each values in the list and that dont
affect fuctions which are using this list.
I must have to use list of tuples.
Have any way to do it using list of tuples.



More information about the Python-list mailing list