I've been trying to remove a specific item from multiple values in a dictionary in python and am not completely sure how to do this. For example, in the dictionary:
d = {('hello', 'hi', 'how are you'): 2, ('hi', 'hello', 'how are you'): 1}
How would I remove 'hi' so that all that remains is:
d = {('hello', 'how are you'): 2, ('hello', 'how are you'): 1}
{('hello', 'how are you'): 2, ('hello', 'how are you'): 1}is{('hello', 'how are you'): 1}