title: Python: "window" is not defined
body: <pre><code>import turtle
  
      windows = turtle.Screen()
      windows.bgcolor("black")``
      mini = turtle.Turtle()
      mini.shape("turtle")
      mini.color("yellow")
      mini.speed(0)
      for i in range (0,36):
          for j in range (2):
                mini.forward(100)
                mini.right(60)
                mini.forward(100)
                mini.right(120)
           mini.right(10)
       mini.right(90)
       mini.forward(150)
  
  window.exitonclick()
  </code></pre>
  
  <p>Above is the code that I want to run in python 2.7.11 but it is showing "window" is not defined. The graphic output is shown but it closes as soon as the output is shown, I have tried opening it in cmd but it was of no use.</p>