What is the purpose of turtle.done() in line 33 in Listing 1.5?
The purpose of the turtle. done() is used to pause the program until the user closed the turtle graphics window in the python that is listed in the 1.5.
turtle.done()
This function is used to starts event loop – calling Tkinter’s main loop function. It does not require any argument. Must be the last statement in a turtle graphics program. Must NOT be used if a script is run from within IDLE in -n mode (No subprocess) – for interactive use of turtle graphics.