I need help with some time function

:thinking: I was wondering how to have a print(“loading…”) for a text adventure where the dots have a delay of being placed by .5 seconds? But it has to be on the same line in the same print function. Please help! thanks.

Play around with this code.

>>> from time import sleep
>>> for i in range(10):
...     print("thinking", end='', flush=True)
...     sleep(0.3)  # do some work here
...     print("...", end='', flush=True)
... 
thinking...thinking...thinking...thinking...thinking...thinking...thinking...thinking...thinking...thinking...

At the very end, you should follow with a bare print() to get a new
line.

Cheers I’ll try it l8r.