Skip to content

Instantly share code, notes, and snippets.

@ak4zh
Last active April 30, 2017 19:25
Show Gist options
  • Save ak4zh/e8e3136637318e7a026642f0379b5f48 to your computer and use it in GitHub Desktop.
Save ak4zh/e8e3136637318e7a026642f0379b5f48 to your computer and use it in GitHub Desktop.
import turtle
turtle.hideturtle()
data = {"P": 'red', "y": 'dark blue', "t": 'green', "h": 'purple', "o": 'orange', "n": 'purple'}
for key in data:
turtle.color(data.get(key))
turtle.write( key, move= False, align="center", font=("comic sans", 22, "bold") )
turtle.penup()
turtle.forward(22)
turtle.pendown()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment