from turtle import *

t= Pen()

def mystar(size, filled):
    if filled == True:
        t.begin_fill()

    for x in range(1, 19):
        t.forward(size)
        if x % 2 == 0:
            t.left(175)
        else:
            t.left(225)
    if filled==True:
        t.end_fill()
        
t.color(0,0.75,0)
mystar(100, True)
