import time
# bar is the var that loops
bar = [
" [= ]",
" [ = ]",
" [ = ]",
" [ = ]",
" [ = ]",
" [ =]",
" [ = ]",
" [ = ]",
" [ = ]",
" [ = ]",
]
i = 0
while thing_isnt_completed: # change loop if necessary
print(bar[i % len(bar)], end="
")
time.sleep(.2) # time per frame
i += 1