title: Replacing a character within a print function without using .replace
body: <p>I am new to programming and have a question about replacing text within a print function in Python.</p>
  
  <p>In my current code, for a count down, if you enter 5 it will print "5431GO", how could I get it to replace the previous character? I have done it before but I forgot how, I think it was something to do with "\r"?</p>
  
  <pre><code>import time
  
  countdown_time = int(input("Enter amount of seconds to count down from: "))
  while countdown_time &gt;= 0:
      if countdown_time == 0:
          print("GO")
          break
      else:
          print(countdown_time, end="")
          countdown_time -= 1
          time.sleep(.5)
  </code></pre>