[Tutor] how to make a reference to part of list?
Xie Chao
silence_for_unknown at yahoo.com
Mon Oct 2 13:07:49 CEST 2006
Namely, if list1 = {1, 2, 3}, and I wanna make a reference, say "ref", to list1's sublist (which is also of type list), say {2, 3}, so that when I make change to ref[0], then list1[1] will be changed!
But how can I make such a reference, 3x!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061002/f373dc02/attachment.htm
More information about the Tutor
mailing list