# the turtle module provides turtle graphics primitives, it uses a Tkinter canvas # turtle is part of the Tkinter library (lib-tk) # tested with Python24 vegaseat 30jun2005 from turtle import * import time # pen/turtle starts at the center (x=0, y=0) of the turtle display area color("green") # pen up, don't draw up() # centers the circle goto(0,-50) # pen down, draw down() # radius=50 center is 50 radius units above the turtle circle(50) up() # center the turtle again goto(0,0) down() # draw blue 100x100 squares color("blue") for deg in range(0, 61, 6): right(90 + deg) forward(100) right(90) forward(100) right(90) forward(100) right(90) forward(100) up() goto(-150,-120) color("red") write("Done!") time.sleep(5) # wait 5 seconds
Edited by Ene Uran
Edited by woooee
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.