Share your repls and programming experiences

← Back to all posts
what is the error in this program??
Swasthik123 (1)

import turtle

Make a square with the turtle.

def square():
my_turtle=turtle.Turtle()
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
my_turtle.left(90)
my_turtle.forward(100)
square()
my_turtle.forward(100)
square()

Commentshotnewtop
Leroy01010 (382)

and also you have to go on python with turtle

Leroy01010 (382)

please can you post this on ask