title: Python Read file. Make a List per line
body: <p>So im wanting to read from a file and put each line of it into a list.</p>
  
  <p>Say I have a file named MyFile.txt or MyFile.csv containing the following three lines of numbers/decimals:</p>
  
  <pre><code>49.55,2,77.09,18,1,2.34,32.11
  33,11.22,33.21,56,76.55
  8,9,44.7,90.99,12.21,1.01
  </code></pre>
  
  <p>I want the program to open the file then read line one and put it into a list ~ say L1list. I then want it to make L2list &amp; L3list for lines 2 &amp; 3.
  Once that's done I want to be able to work out the total for a list, average, max &amp; min etc. I'm pretty confident with this part using sum (), len(),max(), min() etc.</p>
  
  <p>Its the populating of the lists that has me stuck. Im getting the wrong totals, lengths etc.
  Thought maybe its the full-stops or comers. but i need the decimal places and thought lists need the comers to separate.</p>
  
  <p>So far i have tried:</p>
  
  <pre><code>filename = 'MyFile.txt' 
  fin=open(filename,'r')
  L1list = fin.readline()
  L2list = fin.readline()
  L3list = fin.readline()
  </code></pre>
  
  <p>Also:</p>
  
  <pre><code>L1list.append(fin.readline())
  </code></pre>
  
  <p>Along with:</p>
  
  <pre><code>L1list = [i.strip().split() for i in fin.readlines()]
  </code></pre>
  
  <p>A little stuck as to whats going wrong.</p>