Search code examples
pythontimedelay

In Python turtle how can I write a timedelay


I am wondering how to create a time delay with the turtle function. Would it be part of a function that loops to create one when needed?


Solution

  • Are you looking for something like this ?

    import turtle
    
    t = turtle
    
    t.forward(100)
    t.delay(1500)
    t.forward(100)
    

    Don't hesitate to read the Documentation