d = { 'x':42, 'y':3.14, 'z':7 }print d['x'] # 42print d['z'] # 7print d['a'] # raises KeyError exception