Ok so Basically I have this list. pets = ["mypets","herpets","hispets"]
and as this list was generated from reading the lines of a text file
textfile = open("pets", 'r')
lines = textfile.read()
words = lines.splitlines()
print(words)
I am now trying to find a way to convert this list from a list of strings into a list of variable names
pets = [mypets,herpets,hispets]
I would also like to point out that my issue is not in how to construct a list of variables as there may of been a missunderstanding.