title: Splitting from a file and adding to a dictionary
body: <p>I am trying to split lines from a file and then trying to add the split string to a python dictionary, however, I keep getting the following error:</p>
  
  <p><code>'list' object is not callable</code></p>
  
  <p>A line from the file looks like</p>
  
  <p><code>a,12,15,16,17,18,92</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>filename = "numbers.txt"
  file = open(filename, "r") 
  xY = {}
  xX = {}
  for line in file:
      p = line.split(',')
      ID = p(0)
      a  = p(1)
      b  = p(2)
      c  = p(3)
      d = p(4) 
      e = p(5)
      f  = p(6)
  
      xY[ID] = [a, b, c]
      yY[ID] = [d, e, f]
  </code></pre>