Can Anyone Help me on this

Cyril Bazin cyril.bazin at gmail.com
Thu Nov 3 19:51:57 CET 2005


Here is an example of copying then reversing a list:

>>> l1 = [1,2,"C"]
>>> l2 = l1[:]
>>> l2.reverse()
>>> l2
['C', 2, 1]



More information about the Python-list mailing list