title: End parameter in print() function
body: <p>I'm looking at this code:</p>
  <pre><code>import time   
  def countdown(t):
      while t:
          mins, secs = divmod(t,60)
          timer = '{:02d}:{:02d}'.format(mins,secs)
          print(timer, end='\r')
          time.sleep(1)
          t-=1
      print(&quot;Timer is completed&quot;)
  t=input('Enter the time in seconds: ')
  countdown(int(t))
  </code></pre>
  <p>In the print call (on line 6) is <code>end='\r'</code>. What does this indicate or do in the program?</p>