im doing my uni’s basic programming course and haven’t used turtle since high school and was wondering why exactly this shape is filling incorrectly? pictures are attached as to how its filling, and how it should look. code is below.
how the turtle is drawing the trunk
how the trunk is meant to look
t.begin_fill()
t.circle(10, 90)
t.forward(20)
t.penup()
t.back(20)
t.circle(10, -90)
t.pendown()
t.forward(30)
t.circle(10, -90)
t.back(20)
t.right(90)
t.forward(10)
t.end_fill()
I’m not really sure how exactly I would go about fixing this issue.
New contributor
maeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1