Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- a = int(input()) # сторона квадрата
- turtle.shape('turtle')
- while a > 1:
- turtle.pendown()
- for i in range(4):
- turtle.forward(a * 10)
- turtle.right(90)
- turtle.penup()
- turtle.forward(10)
- turtle.right(90)
- turtle.forward(10)
- turtle.left(90)
- a -= 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement