title: How do I save results of a "for" loop into a single variable?
body: <p>I have a for loop:</p>
  <pre><code>for x in range(1,13):
     print (&quot;This was the average temperature in month number &quot; + str(x) + &quot; in Boston, 2014: &quot;, Boston_monthly_temp(x))
  </code></pre>
  <p>This prints out the average monthly temperatures in Boston in 2014, such as:</p>
  <pre><code>This was the average temperature in month number 1 in Boston, 2014:  26.787096774193547
  </code></pre>
  <p>all the way up until Month Number 12 (December):</p>
  <pre><code>This was the average temperature in month number 12 in Boston, 2014:  38.42580645161291.
  </code></pre>
  <p>All in all, this for loop produces 12 lines.</p>
  <p>However, I can't figure out how to store the results of this &quot;for&quot; loop into a single variable, like <code>output_number_one</code>.</p>