Tuple vs List: Whats the difference?

Alexander Schmolck a.schmolck at gmail.com
Wed Jul 11 21:05:09 CEST 2007


Shafik <shafik23 at gmail.com> writes:

> Hello folks,
>
> I am an experienced programmer, but very new to python (2 days). I
> wanted to ask: what exactly is the difference between a tuple and a
> list? I'm sure there are some, but I can't seem to find a situation
> where I can use one but not the other.

Try mutating the tuple or using the list as a hashkey.

'as



More information about the Python-list mailing list