Using time.sleep()
method in Python, I've been trying to print strings in a same line.
Result I want is printing five "." in a line one by one every second.
I've tried end=''
with print line, but it appeared together 5 seconds later.
Here is my code.
import time
for i in range(5):
print("." , end='')
time.sleep(1)
I expect the output of "....." to be printed separately every second (during 5 seconds), but the actual output appeared altogether after 5 seconds.
Sorry for bad english but if you don't mind, please help me :)