title: need help printing a table using for loop
body: <p>Here is the description:
  Your program should develop a table of costs, based on the user's inputs of the starting and ending years and the formula. The table should produce columns as seen below, The column Year is the year, starting at the point the user says to start at, and going to the ending year, stopping there. The size of the step in the table is also specified by the user. The user inputs are all integers. Your program can assume that. NOTE: The "ending year, stopping there" phrase is a bit ambiguous. If you want to use the ending year as the stop value in a range function, that is fine. If you want to add one to the ending year and use that as the stop value, that is also ok.</p>
  
  <pre><code>Big Blue Hard Drive Storage Cost
  
  Enter the starting year: 1992
  Enter the ending year: 2015
  What step size for the table? 4
  
          Hard Drive Storage Costs Table
  
  Start Year = 1992
  End Year = 2015
  
     Year           Cost Per Gigabyte ($)
  
     1992                  2002.627
     1996                  199.894
     2000                  19.953
     2004                  1.992
     2008                  0.199
     2012                  0.02
  </code></pre>
  
  <p>that is what the output is supposed to look like. </p>
  
  <p>My question is how am i supposed to construct a for loop to do that?</p>
  
  <p>I have everything done, but for my for loop, what am i supposed put for the year? since the input values are only start year, end year and the step size. My code: </p>
  
  <pre><code>    for year in range(x &gt; 1979, y &lt; 2011, z):
          cost = 10^(-0.2502 * (year - 1980) + 6.304)
  
  main()
  </code></pre>
  
  <p>This is the equation for the cost: <a href="http://prntscr.com/4r9l9j" rel="nofollow">http://prntscr.com/4r9l9j</a>            </p>