Created
May 10, 2021 10:57
-
-
Save an4s911/bf0f147258cfea7bd2c5aa974f2a75dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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