I'm wondering how I could create one of those nifty console counters in Python as in certain C/C++-programs.
I've got a loop doing things and the current output is along the lines of:
Doing thing 0
Doing thing 1
Doing thing 2
...
what would be neater would be to just have the last line update;
X things done.
I've seen this in a number of console programs and am wondering if/how I'd do this in Python.
print
: stackoverflow.com/a/8436827/1959808 – Ioannis Filippidis Apr 19 '15 at 9:51curses
is an overkill (see the accepted answer). – Alexey Mar 12 at 8:22