I would like to make several statements that give standard output without seeing newlines in between statements.
Specifically, suppose I have:
for it
The best way to accomplish this is to use the \r character
\r
Just try the below code:
import time for n in range(500): print(n, end='\r') time.sleep(0.01) print() # start new line so most recently printed number stays