I have this dict:
{
'x': [0,1,2],
'y': ['a','b','c']
}
A dictionary where all the values are lists, of identical length.
I want to produce this:
[
{ 'x': 0, 'y': 'a' },
{ 'x': 1, 'y': 'b' },
{ 'x': 2, 'y': 'c' }
]
Is there an efficient way to do this? Hopefully using something in itertools?
For example: