Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

close turtle window python

# import package
import turtle
  
# loop for motion
for i in range(3):
  turtle.circle(40)
  turtle.right(120)
  
# exit from the screen 
# if and only if
# mouse is clicked
turtle.exitonclick()
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #close #turtle #window #python
ADD COMMENT
Topic
Name
9+5 =