Skip to content

Instantly share code, notes, and snippets.

@wynand1004
Created August 1, 2018 14:02
Show Gist options
  • Select an option

  • Save wynand1004/5a9fd2837140fcdf26e790a112d09ac4 to your computer and use it in GitHub Desktop.

Select an option

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?")
@wynand1004
Copy link
Copy Markdown
Author

wynand1004 commented Dec 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment