title: Python- sum() takes exactly 2 arguments (1 given)
body: <pre><code>numlist = [10,20,5,30]
  print numlist
  print sum(numlist)
  
  TypeError: sum() takes exactly 2 arguments (1 given)
  </code></pre>
  
  <p>I am trying to use sum function over a list. Python-2.7</p>
  
  <p>Built in function syntax- <code>sum(iteration[,start])</code> with start default to 0</p>
  
  <p>Alternatively tried the following:</p>
  
  <pre><code>print sum(numlist[,0])
  </code></pre>
  
  <p>error: invalid syntax</p>