default value of a variable in python code example Example: python default value d = {'a': 1, 'b': 2} print(d.get('c', 3)) # 3