Created
August 1, 2018 14:02
-
-
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!
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 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