title: Adding Numbers in a Range with for() Loop
body: <p>I'm having trouble filling out a question on an online python tutorial. It seems really simple but for the life of me I can't figure it out. This is the problem "<strong>write a for loop that adds all the numbers 1 to 10 and returns the sum.</strong>" And this is the code I have been trying:</p>
  
  <pre><code>def run():
      sum = 0
      for i in range(11):
          sum += i
          return sum
  </code></pre>
  
  <p>What am I doing wrong? Thanks for any help.</p>