[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] coloring book program to try



Yes there is.  myList.reverse()
Ahh, I think I'm not using that because it changes the sequence itself whereas I want to create a new sequence.. in reverse.. because I need to keep the original sequence order for another part of the program.


myList = [1, 2, 3]
newList = myList[:] # works fine in python 2.1 and 2.2
newList.reverse()

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail