python how to safely pop key from dict code example Example: python dictionary pop key my_dict.pop('key', None)