Skip to content

Instantly share code, notes, and snippets.

@Pr1meSuspec7
Created June 25, 2024 17:05
Show Gist options
  • Save Pr1meSuspec7/920dea27d86546f32b6e3890069700d8 to your computer and use it in GitHub Desktop.
Save Pr1meSuspec7/920dea27d86546f32b6e3890069700d8 to your computer and use it in GitHub Desktop.
Function to simulate typewriter
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