fork download
  1. from collections import defaultdict
  2. dd=defaultdict(lambda:'N/A')
  3. dd['key1']='abc'
  4. print(dd['key1'])
  5. print(dd['key3'])
  6. # your code goes here
  7. # your code goes here
Success #stdin #stdout 0.09s 14212KB
stdin
Standard input is empty
stdout
abc
N/A