title: Using for loop to add 10 numbers
body: <p>Write a program that asks the user for 10 numbers and prints out the total. With the help for loop, I need to collect 10 values and add them but. Like in the example below:</p>
  
  <p>Here is a sample run of the program:</p>
  
  <pre><code>Please enter a number: 5
  Please enter a number: 2015
  Please enter a number: -100
  Please enter a number: 3
  Please enter a number: -999
  Please enter a number: 8
  Please enter a number: 67
  Please enter a number: 19
  Please enter a number: 17
  Please enter a number: -1234
  
  The total is -199       
  =========================================
  </code></pre>
  
  <p>Below is what I have tried so far. However, I'm not sure how to add up all the values collected by the for loop, since the variable num only holds to the last value from the loop</p>
  
  <pre><code>def main():
      for n in range(10):
          num=eval(input("number?"))
          total=num
          print(total)
  
  main()
  </code></pre>