Guest User

Untitled

a guest
Oct 21st, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Draw squaress across page of increasing size
  2. from turtle import *
  3. number_of_shapes = 9 #number of shapes
  4.  
  5. for shape in range(1, number_of_shapes + 1):
  6. # Draw A square
  7. for sides in range(1, 5):
  8. forward(10 + shape * 10)
  9. left(90)
  10.  
  11.  
  12. #move to next square
  13. penup()
  14. right(90)
  15. forward(30 + shape * 10)
  16. left(90)
  17. forward(20 + shape * 10)
  18. pendown()
RAW Paste Data