SHARE
TWEET

Untitled

a guest Oct 21st, 2019 84 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top