How do I write output in same place on the console? June 22, 2022 by Tarik You can also use the carriage return: sys.stdout.write("Download progress: %d%% \r" % (progress) ) sys.stdout.flush()