1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VashaNatasha [74]
3 years ago
15

Define a python functions that draw a pinwheel using the pinwheel function that has input paramiters that allows you to change t

he number of branches and size
then make on that does not use the pinwheel function to draw it
Computers and Technology
1 answer:
QveST [7]3 years ago
8 0

Start with your draw_pinwheel() function

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() and end_fill() so that drawing the triangle creates a colored triangle.

If you have have forgotten, you can use an if/else to check for even/oddness in python as follows.

my_number = 3

if(my_number % 2 == 0):     # the remainder of dividing by 2 is 0

   print("The number is "+str(my_number))

   print("The number is EVEN")

else:                       # the remainder must be 1

   print("The number is "+str(my_number))

   print("The number is ODD")

Good luck <3

You might be interested in
People must use Telepresence when Virtually meeting with a group of coworkers true or false
Norma-Jean [14]
I believe the answer is false
7 0
4 years ago
How does an employer judge a candidate ​
vaieri [72.5K]
Test the candidate
Assess for practical experience
Determine strengths needed for the position.
6 0
4 years ago
In python, what would the following code do..a=b=70
Afina-wow [57]

Answer:

It would assign the value of 20 to the variables a and b

Explanation:

7 0
3 years ago
_____ crime involves the use of computers and the internet to commit acts against people, property, public order, or morality. v
den301095 [7]
Hi,


Answer => Cyber


Good Lessons
6 0
4 years ago
When you merge business letters, how many total documents will you have when you are finished with the merge process?
pychu [463]

Answer:

D. unable to determine – you will have one letter for each recipient on the list.

Explanation:

The reason because of this it depends on how many recipients there are to begin with.

Hope This Helps ;)

8 0
3 years ago
Read 2 more answers
Other questions:
  • Identify four basic data manipulations performed on a relational database using sql
    7·1 answer
  • an internet connectivity plan is also known as a ________. a) text plan b) data plan c) mobile plan d) network plan
    8·1 answer
  • If a person was on board a hypersonic airplane what do you think they would be able to see as they look out a window looking in
    13·2 answers
  • _____ supplement operating system software in ways that increase the security or capabilities of the computer system. firewalls,
    15·1 answer
  • Which is an example of a local government enforcing a national law?
    5·2 answers
  • 10 points!
    12·1 answer
  • What function would be used if you want to compare all other rows with the first row?
    10·1 answer
  • LAB: Praising dates
    14·1 answer
  • Which programming language in order takes the most lines code​
    6·2 answers
  • What is the difference between a free-form outline and a modified outline?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!