0
t.goto(140,175) why it is invalid syntax
Code love
7 ответов
+ 3
please link your code and tag the relevant programming language.
+ 3
there is no t.goto in Python. if you need help, link your code and describe what tit is supposed to do.
+ 3
Which one is line 39?
On several lines, you used turtle functions without referring to turtle. It is t.pensize(15), not pensize(15) and so on. In t.end_fill() the closing ")" is missing.
0
import turtle
t=turtle.Turtle()
turtle.screen().bgcolor("white")
t.penup()
goto(-230,175)
t.pendown()
t.pencolor("black")
pensize(15)
t.forward(15)
t.backward(100)
t.right(90)
t.forward (170)
t.right(90)
t.forward (50)
backward (100)
t.penup ()
t.goto (0 , 0)
t.pendown ()
t.color("red")
t.begin_fill()
t.right(130)
t.forward (133)
t.circle(50,200)
t.right (140)
t.circle (50,200)
t.forward(133)
t.end_fill(
t.penup ()
t.goto(140,175)
t.pendown ()
t.pencolor ("black")
t.right (40)
t.forward (120)
t.circle (60,180)
t.forward (120)
t.penup ()
t.goto (-150,-150)
t.pendown ()
t.write("learnnonpy", font =("sai",50,"book"))
t.hideturtle()
t.done()
0
Code
0
39 line is invalid statement why it is invalid