Skip to content

Instantly share code, notes, and snippets.

@an4s911
Created May 10, 2021 10:57
Show Gist options
  • Save an4s911/bf0f147258cfea7bd2c5aa974f2a75dd to your computer and use it in GitHub Desktop.
Save an4s911/bf0f147258cfea7bd2c5aa974f2a75dd to your computer and use it in GitHub Desktop.
from random import randint
from time import sleep
def timeprint(string):
"""
This Function helps to print any string in a typing way
As if someone is actually typing the content in the string in real time
"""
for i in string:
print(i, end="")
sleep(randint(1, 3)/randint(20,70))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment