First off, a small nitpick: the square brackets [] are for lists, but the round brackets () are for tuples. As I understand it, tuples are immutable (cannot have their content or structure changed). I bring it up because it affects your solution slightly:
$ python
Python 2.5.1 (r251:54863, May...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.