This is pretty much what I have right now:
import time import sys done = \'false\' #here is the animation def animate(): while done == \'false\':
Try this one
import time import sys animation = "|/-\\" for i in range(100): time.sleep(0.1) sys.stdout.write("\r" + animation[i % len(animation)]) sys.stdout.flush() #do something print("End!")