Animasi Konsol Python

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="\r")
    time.sleep(.2) # time per frame
    i += 1
chasa