Run
my_dict = { 'foo': 12, 'bar': 14 } value = my_dict.setdefault('moo') print(f"Value : {value}") print(my_dict)
Output