Assigning file lines to lists in python : <p>I have a "samples" file containing numbers in two lines(separated by a single space):<br>
12 24 36<br>
45 56 67</p>

<p>I would like to add these two lines in python to two lists which list1 then becomes ['12','24','36'] and the list2 becomes ['45','56','67']. I have written code that extracts these in desired format. My problem here is  I can not print these multiple lists with their <strong>index</strong>. For example how can I print only the first list ['12','24','36']. Below is the my code:  </p>

<pre><code>myfile=open('samples.txt','r')
for lines in myfile.readlines():
    results=lines.split()
    print(results) 
</code></pre>

<p>Could you help me with this, please ?</p>
