A simple question on a python module. Let’s say I have the following code:
for i in range(1000):
print i
It’ll output something along the lines of:
1
2
‘Snip’
999
Is it possible to have the program output all the numbers on the same line? I’m not talking about “1, 2, 3 ..” rather I want the line value to change to the current i
If you want the character to be overwritten/replaced each time, you may need to use a terminal control library like ‘curses’. Here’s a Python how-to article to get you started.