MKozlov
9/27/2019 - 8:32 AM

Get default value for missing keys

d = {'a': 1, 'b': 2}

print(d.get('c', 3)) # 3