I am trying to make a progress bar, but I don't want it to print a new line for each character that represents the bar (like: "#"). How do I update the line without printing it again?
Asked
Active
Viewed 404 times
3 Answers
1
You can print a #
without newline with:
print('#', end='', flush=True)

user4815162342
- 141,790
- 18
- 296
- 355
0
You need to change the end of line character to nothing.
print("#", end =''', flush=True )