Tuple vs List: Whats the difference?

Shafik shafik23 at gmail.com
Wed Jul 11 15:18:53 EDT 2007


On Jul 11, 12:05 pm, Alexander Schmolck <a.schmo... at gmail.com> wrote:
> Shafik <shafi... 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

Cool thanks guys.

--Shafik





More information about the Python-list mailing list