Is there a way to zip a list of dictionaries by value?
For example:
d = [{'a': 1, 'b': 2}, {'a': 3, 'b': 5}]
list(zip(*d))
>>> [('a', 'a'), ('b', 'b')]
We can zip a dictionary by key as any other list of tuples, but I wanted the following result:
[(1, 3), (2, 5)]
Is this achievable using zip? Thanks in advance for any help you can provide.