I’m making a program for school but I’m having problems with a python turtle star. The inside keeps being hollow despite much effort to solve the problem. (I’m using Python 3.12.3)
Here is a code segment:
import turtle as t
def star():
t.penup()
t.goto(-100,100)
t.pendown()
t.fillcolor('black')
t.begin_fill()
for p in range(5):
t.forward(200)
t.right(144)
t.end_fill()
star()
I tried many different ways to solve it but it never worked. I want the star to be completely filled in instead of having a hollow pentagon in the middle.