title: map function in Python
body: <p>Content of file scores.txt that lists the performance of players at a certain game:</p>
  
  <pre><code>80,55,16,26,37,62,49,13,28,56
  43,45,47,63,43,65,10,52,30,18
  63,71,69,24,54,29,79,83,38,56
  46,42,39,14,47,40,72,43,57,47
  61,49,65,31,79,62,9,90,65,44
  10,28,16,6,61,72,78,55,54,48
  </code></pre>
  
  <p>The following program reads the file and stores the scores into a list</p>
  
  <pre><code>f = open('scores.txt','r')
  L = []
  for line in f:
      L = L + map(float,str.split(line[:-1],','))
  print(L)
  </code></pre>
  
  <p>But it leads to error messages. I was given code in class so quite confused as very new to Pyton. 
  Can I fix code?</p>