Python Animation Help
Hello, If you run the repl it works but the same line at the top of the console doesn't change! how can I change or remove that?
also, if you can, how can I remove the delay between each loop of the
for i in range(4) loop?
To remove/shorten the delay, edit line 11. Also I would suggest redoing it entirely and have something like this:
from sys import stdout from random import randint from time import sleep while True: print('|'+' '*randint(1,30), end='') stdout.flush() sleep(0.005)