I looked at the other invert question, but that one does not have a dictionary with lists so that doesn't help me out.
So I have a dictionary and basically I want to invert it. So the keys become the values and the values become the keys. For example if I have: {'Sun' : ['hot', 'yellow'], 'Car': ['yellow'], 'Fire': ['hot']}
,
it should return: {'yellow': ['Sun', 'Car'], 'hot': ['Sun', 'Fire']}
I have tried just getting the key values but I don't know how to get them into the dictionary and assigning the key values to them. I would appreciate any help but using the most basic methods if possible Thanks