So I am trying to store multiple variables in a list, each variable contains text. After that, I would like to perform some analysis on the text which is stored inside the variable that is stored in the list.
Code:
my_list = list[]
var_1 = 'I have lots of text'
var_2 = 'I have even more text'
var_3 = 'but wait there is more'
my_list.append('var_1','var_2','var_3')
for var in my_list:
x = package.function('var')
print x
what ends up happening is that the function is performed on the variable name not the text that is stored inside it. Thanks for your help in advance.
my_list = list()in your first line