[Tutor] dictionary datatype

Hugo González Monteverde hugonz-lists at h-lab.net
Wed Apr 12 17:00:27 CEST 2006


kakada wrote:

> I assign:
> n = 0x2018
> print dict1[n]
> 
> Then:
> KeyError: '0x2018'
> 

Notice the error menstions a *string*. You probably mistyped it, not in 
the email, but in your actual program.

Hugo


More information about the Tutor mailing list