importturtledan=turtle.Turtle()dan.shape('turtle')distance=100angle=120defpetal():ifi%2:dan.color('green')else:dan.color('lightgreen')dan.left(30)# draw a triangle and fill in the colordan.begin_fill()dan.forward(distance)dan.right(angle)dan.forward(distance)dan.right(angle)dan.forward(distance)dan.end_fill()dan.left(angle)# start off 45 rightdan.right(45)# repeat the forward/right functions four timesforiinrange(4):petal()# now draw the stemdan.pensize(10)dan.right(45)dan.forward(200)