title: python: simple square grid
body: <p>Recently, I've been trying to figure out a 20 by 20 square grid. so far I've only figured out how to draw 4 no matter what I put as my # of. it would be greatly appreciated if someone can figure out my flaws in the code!</p>
  
  <p>what I'm trying to achieve</p>
  
  <p><a href="https://i.stack.imgur.com/uyN2t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uyN2t.png" alt="what I&#39;m trying to achieve"></a></p>
  
  <p><strong>my code</strong></p>
  
  <pre><code>import turtle
  turtle.hideturtle()
  t = turtle.Turtle()
  t.hideturtle()
  
  def draw_square(t, size, num, angle):
  
  for i in range(num):
      for x in range(4):
          turtle.forward(size)
          turtle.left(90)
      turtle.right(angle)
  
  draw_square(t, 25, 4, 90)
  </code></pre>