dictionary object
Diego Dainese
ddainese27x at x40dsi.unive.it
Thu May 13 15:21:53 EDT 1999
On Tue, 11 May 1999 11:14:24 -0700 (PDT), Nathan Clegg wrote:
> > Ooops, you are right, I have simplified too much the program I'm
> > writing, sorry!
> >
> > The problem is that the element of the tuple that I must change, must
> > be changed based on the other element of the tuple.
> >
> > num = dict["pluto"][0]
> > dict["pluto"]= (num, "hello " + num)
>
> This could still be solved using lists instead of tuples:
>
> l = dict["pluto"]
> l[1] = "hello" + l[0]
>
Great!
Since I'm accustomed to program in C, I were looking for a way to
store the address of the tuple, not seeing that the solution was so
simple... ;)
Thank you all, bye
--
d i e g o
--
To reply remove the numbers and the `x' from my address
--
Sorry for my bad English!
More information about the Python-list
mailing list