Hi I am creating a loop function in which I have numpy variable stored first with some values. Post some checks and getting the value in by pasting etc, I get the value in string for which I want to fetch the numpy array values. I think the code snippet below will make it clear.
#Original array in loop above the string name
values=np.array([1,2,3])
# create string name after comparing on various factors
string=str("values")
#now I want is that when I print string, the values should come of the array and not the text string
print(string)
I hope I am clear of the task in hand and my question is clear to the audience.
Thanks