Skip to content
← Back to Community
Fancy Typing Text Generator in Python
Profile icon
EktaGupta1

I was bored. This thing takes your text and puts a typing effect on it.
Here's the function to use it in your code:

def typeP(words): for char in words: sleep(speed) sys.stdout.write(char) sys.stdout.flush()

Just run typeP("Hello"), or whatever string you want, to use it.
Enjoy!

Voters
Profile icon
EktaGupta1
Comments
hotnewtop
Profile icon
NadineAlAlousi

Wellcome

Profile icon
EktaGupta1

Correction: At the top of the file, you'll need:

import sys from time import sleep

Otherwise, you'll just get an error.