Source Code:
(back to article)
my_dict = {'a': 1, 'b': 2, 'c': 3} value = my_dict.pop('d', 'not found') print(value) # 'not found' print(my_dict) # {'a': 1, 'b': 2, 'c': 3}
Result:
Report an issue