I have 2 lists:
List_1: [a,a,a,b,b,c,c,c,a,a]
and a corresponding list List_2: [{1,2,3},{5,6,9},{10},{11},{27,18,29},{1,2,3},{7,10},{34},{83},{60}] which is a list of sets for each of the elements in the List_1.
I need a dictionary keyed by the unique elements in list_1 and valued by their corresponding (concatenated) lists from list_2. So for example, the output I'd be looking for here would be:
Dict = {a:[1,2,3,5,6,9,10,83,60], b:[11,27,18,29], c:[1,2,3,7,10,34]}
My first instinct was dict(zip(list_1,list_2)) which obviously hasn't worked...
Any help appreciated :)