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