We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c7928 commit 63259faCopy full SHA for 63259fa
flush-print/progress.py
@@ -2,7 +2,7 @@
2
3
4
def progress(percent=0, width=30):
5
- progress = (width * percent // 100)
+ progress = width * percent // 100
6
bar = "#" * progress
7
pad = " " * (width - progress)
8
print(f"\r[{bar}{pad}] {percent:.0f}%", end="", flush=True)
0 commit comments