Zamień słownik w płaską listę
>>> [item for k in d for item in (k, d[k])]
['a', 1, 'c', 3, 'b', 2]
Real Raccoon
>>> [item for k in d for item in (k, d[k])]
['a', 1, 'c', 3, 'b', 2]
>>> [item for pair in d.iteritems() for item in pair]
['a', 1, 'c', 3, 'b', 2]
>>> [item for pair in d.viewitems() for item in pair]
['a', 1, 'c', 3, 'b', 2]