I have the following output from a code I ran on Python:
T1 = [{0: 0}, {15: 3}, {19: 1}, {20: 1}, {0: 0}]
I want to extract the keys and values from each object respectively. For T1, I would thus have:
P1 = [0,15,19,20,0]
D1 = [0, 3, 1,1,0]
What would be the best way to code it?
Thanks in advance,