#GPT-4 Conversation #1098681237972975617

1 messages · Page 1 of 1 (latest)

storm ravineBOT
whole wadi
#

when i try running this code:

import turtle

def draw_circle(color, radius, x, y):
turtle.fillcolor(color)
turtle.begin_fill()
turtle.up()
turtle.goto(x, y)
turtle.down()
turtle.circle(radius)
turtle.end_fill()

def draw_smiley():
turtle.speed('fastest')

# Draw the face
draw_circle("yellow", 100, 0, -50)

# Draw the left eye
draw_circle("white", 20, -40, 50)

# Draw the right eye
draw_circle("white", 20, 40, 50)

# Draw the nose
draw_circle("black", 3, 0, 10)

# Draw the mouth
turtle.up()
turtle.goto(-40, 5)
turtle.down()
turtle.right(90)
turtle.circle(40, 180)

turtle.hideturtle()
turtle.done()

Run the smiley face drawing function

draw_smiley()

it outputs an error, saying : ExternalError: TypeError: instance[method] is undefined on line 13