r/learnpython • • 12m ago

Turtle Error

does anyone know why my code keeps insta closing(i am really new to this)

import turtle
t = turtle.Turtle()

t.forward(100)
t.down(100)
t.left(100)
t.forward(100)

turtle.done()

0 Upvotes

1 comment sorted by

•

u/Due-Mortgage-6854 6m ago

t.down(100) is not a valid method in Python's turtle. You gotta use t.right() or t.left() to turn and then t.foward(). Docs