Python – turtle.delay() method
Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967.
The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
This method is used to return or set the drawing delay in milliseconds. It requires only one optional argument as a positive integer for delay.
Syntax : turtle.delay(delay)
- delay : a positive integer, denoted the delay time in milliseconds, is optional
Returns : The delayed value
Below is the implementation of above method with some examples :
Example 1 :
Example 2 :
My Personal Notes arrow_drop_up
Please Login to comment...