title: Python print on same line after sleep
body: <p>I checked <a href="https://stackoverflow.com/questions/12032214/python-3-print-new-output-on-same-line/20544490#20544490">Print new output on same line</a></p>
  
  <p>but am still confused:</p>
  
  <pre><code>import time
  print("HI ", end=""),
  time.sleep(2)
  print("BYE")
  </code></pre>
  
  <p>it does print HI BYE on the same line, but it prints all at once after the sleep. I want to print HI then sleep for 2 seconds and print BYE after the 2s.</p>
  
  <p>Ideas?</p>
  
  <p>Thanks.</p>