I have two list one with the label and the other data. for example
label = [“first”,”second”]
list = [[1,2],[11,22]]
I need the result to be a list of dictionary
[ {
“first” : 1,
“second” : 2,
},
{
“first” : 11,
“second” : 22,
}
]
Is there a simple way to do that. Note the label and list might vary, but number of entry remain the same.
1 Answer