I have a small python script which draws some turtle graphics. When my script has finished running, the turtle screen automatically closes, so to be able to see the graphics
simply use the mainloop() function imported from turtle's module itself!.
import turtle #Draw a square for i in range(4): turtle.forward(200) turtle.left(90) #calling for the mainloop() turtle.mainloop()