why?

sami sieranoja sami.sieranoja at pp.inet.fi
Mon Dec 2 18:43:54 EST 2002


On Mon, 2 Dec 2002 20:48:27 -0200 (EDT)
Aloysio Paiva de Figueiredo <aloysio at impa.br> wrote:

>  
> Tuples are immutable. Try changing
>  >>> doing[1] = ('b','c')
> for
>  >>> doing[1] = ['b','c']
> 
> and it will work

Thanks. that's exactly what I needed. I just didn't see the difference
between tuples and lists.


-Sami





More information about the Python-list mailing list