Question: 9.) Write a function called species_height that takes 2 arguments. The first is either Human or Klingon. The second is a positive float representing

9.) Write a function called species height that takes 2 arguments. The first is either

9.) Write a function called species_height that takes 2 arguments. The first is either "Human" or "Klingon". The second is a positive float representing the height (in inches) of this human or Klingon. In this homework assignment, the average human height is 67 inches. The average Klingon height is 71 inches. For the parameters given, print out if it is above, below or at the average height for its species. Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green): species height ("Human", 62.1) Below Average species height ("Klingon", 73) Above Average 5 species height ("Klingon ", 71) Average

Step by Step Solution

3.31 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def speciesheightspeciestype height Function that takes two parameters a string for t... View full answer

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!