# NOTE FOR CANOPY USERS: 'turtle' is based on a GUI called 'tkinter' which is different from # what Canopy is based on that's called 'pylab'. Hence, in order to be able to use turtle in # Canopy, you should do the following: # Click on Canopy - Preferences - Python, then uncheck 'Use Pylab'. from turtle import * def initturtle(): pencolor('blue') speed('slowest') tracer(1) goto(0,0) pendown() def graphword(str): for char in str: if char == 'F': forward(100) if char == '-': left(90) initturtle() graphword('F-F-F-F-') done()