Imaging I have these two lists:
varnames=['a','b','c']
values = [1,2,3]
I would like to asign the values of the second list to variables of the first list. I.e. the names of the variables are the strings of the first list.
Expected resuLt:
a=1
b=2
c=3
Is that even possible? Is so With a one liner?
Thx.
EDIT 1: here there is a link How do I create variable variables? to an article about php. I.e it's not a duplication