ARTICLE AD BOX
The safest way I practice to access dictionary lookup = dict() is
if key in lookup: #do lookup[key] operationson the contrary
if key not in lookup: #print error or handle it #then proceed with lookup[key] operations9842 gold badges15 silver badges50 bronze badges

