title: Store the numbers of a `for` loop's output, and sum them all?
body: <p>I want to store integers and return the sum, using <code>random.randint()</code> for random values.</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>import random
  
  val = int(input('How many numbers?: '))
  
  for i in range(val):
      print(random.randint(1,99))
  </code></pre>
  
  <p>I need to print the integers to the console and then sum them and return the final sum.</p>
  
  <p>Example:</p>
  
  <pre><code>How many numbers?: 4
  84
  50
  35
  35
  Final number: 204
  </code></pre>
  
  <p>I need it to work for an infinite amount of numbers too.</p>