MagicWinnie

Turtle - A

Aug 4th, 2022
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import turtle
  2.  
  3. window = turtle.Screen()
  4. t = turtle.Turtle()
  5.  
  6. a = int(input())
  7.  
  8. t.forward(a)
  9. t.right(90)
  10. t.forward(a)
  11. t.right(90)
  12. t.forward(a)
  13. t.right(90)
  14. t.forward(a)
  15.  
  16. print("Я построил квадрат со стороной:", a)
  17. turtle.done()
  18.  
Advertisement
Add Comment
Please, Sign In to add comment