rodrigosantosbr

[Py] Drawing square (Turtle)

Feb 16th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # drawing a square
  2.  
  3. import turtle
  4.  
  5. tartaruga = turtle.Turtle()
  6. for i in range(0,4):
  7.     tartaruga.forward(100)
  8.     tartaruga.right(90)
  9.  
  10. turtle.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment