Hi,
I'm looking for a way to convert list of tuples which looks like this:
[(1,4),(2,4),(3,4),(4,15),(5,15),(6,23),(7,23),(8,23),(9,15),(10,23),(11,15),(12,15)]
into a dictionary, where key:value pair looks like this:
{4:[1,2,3] ,15:[4,5,9,11,12], 23:[6,7,8,10]}
Second element from a tuple becomes a dictionary key. First tuple element is assigned to that key.
Can you show me how that can be done?