How can I convert string values into python variables?
The setup is the following: I have variable_names = ['a', 'b', 'c']
and I would like to create for each item in variable_name a variable which I can assign a value to (like this a = 10
, b = 20
, c = 30
). I do not want a dictionary. When I print(a)
I should get 10.