1import time
2# bar is the var that loops
3bar = [
4 " [= ]",
5 " [ = ]",
6 " [ = ]",
7 " [ = ]",
8 " [ = ]",
9 " [ =]",
10 " [ = ]",
11 " [ = ]",
12 " [ = ]",
13 " [ = ]",
14]
15i = 0
16
17while thing_isnt_completed: # change loop if necessary
18 print(bar[i % len(bar)], end="\r")
19 time.sleep(.2) # time per frame
20 i += 1
21