title: Python: Total sum of a list of numbers with the for loop
body: <p>I'm new to Python and I have this problem:</p>
  
  <p>I need to program a Python function that gives me back the sum of a list of numbers using a for loop.</p>
  
  <p>I just know the following:</p>
  
  <pre><code>sum = 0
  for x in [1,2,3,4,5]:
        sum = sum + x
  
  print(sum)
  </code></pre>