r/learnpython • u/regigas_mynga • 9m 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
•
u/Due-Mortgage-6854 3m ago
t.down(100)is not a valid method in Python's turtle. You gotta uset.right()ort.left()to turn and thent.foward(). Docs