On day 43 of the 365 days of code, I am still on the turtle documentation.
Using turtle to draw a square:
from turtle import Turtle, Screen
maddy = Turtle()
maddy.shape("turtle")
maddy.color("blue")
for i in range(4):
maddy.forward(100)
maddy.left(90)
screen = Screen()
screen.exitonclick()
Comments
Post a Comment