Skip to content

Instantly share code, notes, and snippets.

@wynand1004
Created August 1, 2018 14:02
Show Gist options
  • Save wynand1004/5a9fd2837140fcdf26e790a112d09ac4 to your computer and use it in GitHub Desktop.
Save wynand1004/5a9fd2837140fcdf26e790a112d09ac4 to your computer and use it in GitHub Desktop.
Simple printing function to print one letter at a time in classic computer style!
import time
def machine_print(text, delay = 0.1):
for letter in text:
print(letter, end="", flush=True)
time.sleep(delay)
print()
machine_print("Greetings, Professor Falken. Shall we play a game?")
machine_print("How about a nice game of chess?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment