Mixing Data types in a Dictionary : Key « Dictionary « Python Tutorial






d = {"A":"a", "B":"b"}    
print d 
d["retrycount"] = 3                       
print d
d[42] = "douglas"                              
print d








8.16.Key
8.16.1.Dictionary Keys Are Case-Sensitive
8.16.2.Mixing Data types in a Dictionary