if we try to index a nonexistent key (D[‘d’]) than it will produce ‘keyerror’.
if we try to assign to a nonexistent key d than it will add a new element in dictionary.
if we try to index a nonexistent key (D[‘d’]) than it will produce ‘keyerror’.
if we try to assign to a nonexistent key d than it will add a new element in dictionary.