Question: python 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

 python 9.) Write a function called species_height that takes 2 arguments.

python

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 i:s in blue, the output produced is in green): species height ("Human", 62.1) Below Average species height("Klingon", 73) Above Average species height ("Klingon ", 71) Average

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 Databases Questions!