Created
June 25, 2024 17:05
-
-
Save Pr1meSuspec7/920dea27d86546f32b6e3890069700d8 to your computer and use it in GitHub Desktop.
Function to simulate typewriter
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
import sys, time | |
def typewriter(text): | |
for character in text: | |
sys.stdout.write(character) | |
sys.stdout.flush() | |
time.sleep(0.008) | |
print("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment