title: How to add numbers to be stored in a variable?
body: <p>This is the problem I have to solve : Write a program to sum a series of numbers entered by the user. The program should first prompt the user for how many numbers are to be summed. It should then input each of the numbers and print a total sum. This is what I have so far:</p>
  
  <pre><code>def excercise13():
  
  print("Programming Excercise 13")
  print("This program adds a series of numbers.")
  while True:
      try:
          numberTimes = float(input("Enter how many numbers will be added: "))
      except ValueError:
          print("Invalid input.")
      else:
          break
  numberTimes = int(numberTimes)
  while True:
      try:
          for i in range(1,(numberTimes+1)):
              ("""I don't know what to put here""")
      except ValueError:
          print("Invalid input.")
      else:
          break
  totalSum =
  print("The sum of",nums,"is:",totalSum)
  print()
  
  excercise13()
  </code></pre>