In python, i have this dictionary :
dict = {'key1':[a,b,c] , 'key2':[1,2,3], 'key3':[a,b,c]}
I need to group the keys with the same value (lists in this case) together in order to get a new dictionary:
res = {'group1':[key1,key3], 'group2':[key2]}
How can i do this in a easy/comprehensive way?