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