If I have an array of strings which I have generated with a for loop:
A = ['a1','a2','a3']
And I have also defined the following variables:
a1 = 3;
a2 = 4;
a3 = 5;
How do I make an array of these variables starting from A? That is, I don't want to copy and past all the variables by hand, but instead I want to convert these strings into the variables that are already defined with the strings as names.