Reformatting dictionaries in Python
Two concise and efficient approaches
Tags: python