Links

Search This Blog

February 16, 2026

Thinking...

import sys, time

th = "Thinking"

print(th, end="", flush=True)


while True:

    for i in range(4):

        sys.stdout.write("\b" * 3)        # move back over dots

        sys.stdout.write("." * i + " " * (3 - i))

        sys.stdout.flush()

        time.sleep(0.5)


#Credits: CoPilot

No comments:

Post a Comment