python pop from dic code example Example 1: dict pop dictionary.pop(key, default) Example 2: python dictionary pop key my_dict.pop('key', None)