Lesson 21: Four corners

posted May 29, 2019, 7:52 AM by Attila Lengyel   [ updated May 29, 2019, 7:57 AM ]
import turtle as t

bob = t.Turtle()
bob.shape("turtle")


def move(x,y,corner):
bob.clear()
bob.speed(0)
bob.penup()
bob.goto(x,y)
bob.pendown()
for x in range(0,3):
bob.forward(40)
bob.left(120)

bob.write("Corner ", corner)

move(-200, 200, 2)
move(0,0,0)
move(200, 200, 1)
move(0,0,0)
move(-200, -200, 3)
move(0,0,0)
move(200, -200, 4)
Comments