title: Need help to understand while loop
body: <p>I started to learn python and I am doing small projects to help in my day to day activities. Now I am trying the following script to calculate seconds like a countdown - 314 seconds on every for, but I don't understand how to get the new value:</p>
  
  <pre><code>counter = 1
  currenttime = 2000
  while counter &lt;=5:
      counter = counter + 1
      newtime = currenttime - 314
      print arty
  </code></pre>
  
  <p>In this case, it starts with 2000 - 314, it prints the newtime 1686, but now I want the next calculation to be with the new currenttime (1686 - 314) and keep going.</p>