How can i show "dynamic" messages into loop? For example:
for item in array:
print (item + " > Cheking file", end=" ")
#Conditions which takes some time. Create a zip file or smth else..
if (some condition):
print ("> Creating archive", end=" ")
#Another conditions which takes some time.
if (some condition):
print ("> Done!")
I thought that the result must be:
FILENAME > Checking file ... *tick tock* ... > Creating archive ... *tick tock* ... > Done!
But the line appeares entirely after each loop cycle. How can show messages like CMD style?