Save readline() as element not string
<p>Ok,
Lets say I have a list of variable names in a file and I want to store them in a list.
I can make a while loop and append to the list 1 by 1 however they are saved in the list as strings. How can change this to a group of variable names.</p>

<pre><code>list = []
f = open("text.txt",r)
f.readline()
while line != "":
    list.append(line)   
    f.readline()
</code></pre>

<p>I want list to be a list of variable names not a list of strings.
Thanks</p>
