title: Run range of numbers through a function
body: <p>So I am creating a range of numbers and I want to run the list of numbers through a function so I can get multiple out puts.</p>
  
  <pre><code>x = range(1,6)
  
  def fun(x):
      x**2 + x + 2
  </code></pre>
  
  <p>This is the basic idea. But I cant figure out how to run individual elements of the list, one at a time, so I can 5 outputs (for this example).</p>
  
  <pre><code>4, 8, 14, 22, 32
  </code></pre>