title: Invalid Syntax Turtles
body: <p>I have been trying to write a code to familiarize myself with turtles, and the code is supposed to make 500 randomly colored boxes.  This is the code:</p>
  
  <pre><code>import turtle
  from random import randint
  colors = ['red', 'green', 'yellow', 'purple', 'blue', 'orange']
  window = turtle.Screen()
  window.title('500 Boxes')
  
  for x in range(500):
      box = turtle.Turtle()
      box.color(colors[randint(0, 6)]
      for x in range(4):
          box.forward(30)
          box.left(90)
  </code></pre>
  
  <p>Then, when I run the code I get this error:</p>
  
  <pre><code>line 10: Invalid Syntax
  </code></pre>
  
  <p>I am really not sure what the problem is.
  Thanks</p>