Omar Albeik
Menu
Blog
Snippets
Projects
Gallery
About
Home
Snippets
Print to the same line
Python
Share
Print to console using the same line (useful for progress logging)
py
Copy
import time for i in range(0,11): print("{}/10".format(i), end="\r", flush=True) time.sleep(1)
Copyright © 2024
Omar Albeik
. All rights reserved.