[Tutor] Dictionary command

Gonçalo Rodrigues op73418 at mail.telepac.pt
Wed Nov 17 13:31:04 CET 2004

Naveed Ahmed Khan wrote:
[text snip]
> What I was doing was that I was writing dict = () instead of dict = {}, got
> it, I was using the wrong bracket.
> It's really embarrassing, but true.
> For the next time I will try to figure out how to copy the "Python command
> line screen" so that you can see exactly what I have done there.

Besides using {} brackets for dictionaries do *not* use dict for your 
own variables. dict is the name of the dictionary class object builtin 
as the following shows:

 >>> dict
<type 'dict'>

With my best regards,
G. Rodrigues

More information about the Tutor mailing list