Given a dictionary in Python:
{u'100': 0, u'200': 1, u'300': 2, u'100': 1, u'400': 1, u'400': 1, u'500': 1}
How can I create a new dictionary that reverses the key and value:
{0: [u'100'], 1: [u'200', u'100', u'400', u'400', u'500'], 2: [u'100']}
Given a dictionary in Python:
{u'100': 0, u'200': 1, u'300': 2, u'100': 1, u'400': 1, u'400': 1, u'500': 1}
How can I create a new dictionary that reverses the key and value:
{0: [u'100'], 1: [u'200', u'100', u'400', u'400', u'500'], 2: [u'100']}