Ask coding questions

← Back to all posts
How do you increase The Turtle's speed in Python with turtle?
DSPRINT (0)

My turtle's speed is super slow. And I am doing a cool effect using Python with Turtle, but it takes so long to finish running it.

Comments
hotnewtop
RYANTADIPARTHI (6001)

Solution

you need to use speed() with 0. 0 is the fastest.

import turtle

turt = turtle.Turtle()
turt.speed(0)
turt.color("red")

for i in range(4):
    turt.forward(100)
    turt.left(90)

try that code. It makes a square in turtle quickly.
That should work

Chocolate16 (36)

do this:
import turtle
t = turtle
t.speed(0)
0 is the fastest!