Say you have a dict called mydict defined below, and you look for a key called 'D'.
mydict = {'A':'a',
'B':'b',
'C':'c'}
mydict['D']
The desired output should be 'D', the exact output you entered. Is there a way to do this with default dict?