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 58 times
3 Answers
0
You can print a # without newline with:
print('#', end='', flush=True)
user4815162342
- 124,516
- 15
- 228
- 298
0
You need to change the end of line character to nothing.
print("#", end =''', flush=True )