Why isn't my code working
I am confused. I am pretty sure, that the code is right, I don't understand why it isn't working. What I am trying to do is create a star that is filled in. Can someone help me find my mistake?
You are viewing a single comment. View All
Answered by Bookie0 [earned 5 cycles]
@Bookie0 Ok so like this, but it is still not working.
t = turtle.Turtle() def mystar(size, filled): if filled == True: t.begin_fill() for x in range(1, 19): t.forward(20) if x % 2 == 0: t.left(175) else: t.left(225) if filled == True: t.end_fill() mystar(size,filled): mystar(20,'yellow')