-
-
Save stephengruppetta/0270bd8f314ea1470dc7bd9b8f0c27f9 to your computer and use it in GitHub Desktop.
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 turtle | |
window = turtle.Screen() | |
typewriter = turtle.Turtle() | |
def type_letter(): | |
typewriter.write("a", font=("Courier", 30, "normal")) | |
typewriter.forward(30) | |
window.onkeypress(type_letter, "a") | |
window.listen() | |
turtle.done() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment