new to python - please help

Terry Reedy tejarex at yahoo.com
Tue Mar 12 12:47:41 EST 2002


"Owen Stevens" <owen_stevens at hotmail.com> wrote in message
news:9e629c01.0203120932.5b3eae15 at posting.google.com...
> (apologies for last post)
>
> i made a dictionary (mydict) with the following structure:
>             mykey=(list1:list2)

This is not a legal python statement

> i overwrote list1 inside the dictionary with a new list
>
>      templist1=[mydict[mykey][0]

Neither is this, so it is hard to know what you actually entered, and
therefor hard to comment on what you claim to be the output.  Try
again, with the actual code you ran (preferably cut and pasted) and a
short description of what you are trying to accomplish.

Terry J. Reedy






More information about the Python-list mailing list