How do I check if a key is also a value in a dictionary? : learnpython

For example: d = {‘food’: ‘pizza’, ‘liquid’: ‘pepsi’, ‘edible’: ‘food’} Once it finds the value ‘food’, the key ‘food’ is stored in a list.