title: Converting printed output of function to a list
body: <p>I have a function called <code>game()</code> which prints out a number.</p>
  
  <p>I need to run this 500 times using</p>
  
  <pre><code>for i in range(500):
      game()
  </code></pre>
  
  <p>but I cannot figure out how to convert this output of 500 numbers into a list.</p>