pop key at any level dict python code example Example: python dictionary pop key my_dict.pop('key', None)