Advertisement
plarmi

work10_4

May 25th, 2023
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import turtle
  2.  
  3. a = int(input())  # сторона квадрата
  4. turtle.shape('turtle')
  5. while a > 1:
  6.     turtle.pendown()
  7.     for i in range(4):
  8.         turtle.forward(a * 10)
  9.         turtle.right(90)
  10.     turtle.penup()
  11.     turtle.forward(10)
  12.     turtle.right(90)
  13.     turtle.forward(10)
  14.     turtle.left(90)
  15.     a -= 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement