Trying to Print List: Getting Empty
<p>Here is my code:</p>

<pre><code>&gt;&gt;&gt; f=open('list.txt')
&gt;&gt;&gt; print list(f)
['bird\n', 'cat\n', 'cat\n', 'cat\n', 'tree']
&gt;&gt;&gt; mylist=list(f)
&gt;&gt;&gt; print mylist
[]   
&gt;&gt;&gt; print list(f)
[]
</code></pre>

<p>Why is the list empty??? Earlier in the code it shows the list is the correct list. Further, why it the first command "print mylist" showing an empty list? I had previously set mylist=list(f). Thanks.</p>
