I have two dictionaries with a list in the value part. Something like this
dict1 = {red:[1,2,3], blue:[7,6,9], green:[3,9,3,1]}
dict2 = {red:[2,1,3], blue:[9,7,6], green:[3,9,1,3]}
In this case, the comparison must give a True as in both the dictionaries contains the same values in the list for a given key. I come up with a solution in which I access the list values using the key. Then check if the length of the lists are same and each value in one list present in the other list. I think there is some other way to do this in python. What is the best "pythonic" way to do this?