Jan-12-2022, 08:55 PM
Or, just tell print() to not include the newline.
import sys import time response = "Hello there..." print ("Baxter: ", end="") for i in response: sys.stdout.write(i) sys.stdout.flush() time.sleep(0.2)