Suppose I have the following list:
['a','b','c','d']
And multiple dictionaries of the form
{'a':val1,'b':val2,'c':val3,'d':val4}
{'a':val5,'b':val6,'c':val7,'d':val8}
I want to create lists for each element in the list, like below:
a=[val1,val5]
b=[val2,val6]
c=[val3,val7]
d=[val4,val8]
Note : I could have more than 4 elements in my initial list.