Question: PROBLEM 3 : FUN PINWHEEL Description: write the function that draws and fill the fun pinwheel . Requirements: This function is a little trickier as

PROBLEM 3: FUN PINWHEEL
Description: write the function that draws and fill the fun pinwheel .
Requirements:
This function is a little trickier as it requires alternating between the two parameter colors, color1 and color2.
The general strategy is the following:
Start with your draw_pinwheel() function from Problem 1.
During each iteration of the loop, decide which color to set the turtle to using the color() function.
On even iterations, use color1
On odd iterations, use color2
Use an if/else statement to do the decision making
After deciding the color, surround a call to draw_triangle() with begin_fill() andend_fill() so that the
triangle is filled in with the right color.
Feel free to use similar examples we covered in class as a resource.
PROBLEM 3 : FUN PINWHEEL Description: write the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!