Run
my_dict = { 'foo':12, 'bar':14, 'moo':14, } value_to_remove = 14 result_dict = {key: value for key, value in my_dict.items() if value != value_to_remove} print(result_dict)
Output