Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- t = turtle.Turtle()
- turtle.Screen().bgcolor("grey")
- t.up()
- t.shape("square")
- t.shapesize(4, 4)
- x, y = -280, 280
- colors = ["white", "black"]
- for row in range(8):
- t.goto(x, y)
- for h in range(8):
- t.color(colors[(row + h) % 2])
- t.stamp()
- t.forward(80)
- y -= 80
- t.hideturtle()
- turtle.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement