I want a text to be displayed as if it is just being typed. So I need a little delay after every letter.
I tried to do it this way:
import time text
Your example prints them all on separate lines I think (at least on windows). You can use printing to sys.stdout to get around this.
sys.stdout
import time, sys for character in text: sys.stdout.write(character) time.sleep(0.2)