title: Turtle Graphics: Repeating Squares
body: <p>I am trying to create a loop that takes an input by a user and draws however many squares but it increases the size of the squares with each loop, however 2 sides are stay connected.  I'll include the graphic to better explain.</p>
  
  <p><a href="https://i.stack.imgur.com/zgv0m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zgv0m.png" alt="enter image description here"></a></p>
  
  <pre><code>    import turtle
  
  squares = 1
  while squares &gt;= 1:
      squares = int(input('How many squares would you like drawn?:'))
      if squares == 0:
          print("You must have at-least 1 square.")
          squares = int(input('How many squares would you like drawn?:'))
      else:
          for count in range(squares):
              turtle.forward(30)
              turtle.left(90)
              turtle.forward(30)
              turtle.left(90)
              turtle.forward(30)
              turtle.left(90)
              turtle.forward(30)
              turtle.left(90)
  
  
  turtle.done()
  </code></pre>