Question: 1) Write a function called pyramid(height) that accepts a parameter height. It then prints a pyramid of that height. (30 points) 2) Write a function

 1) Write a function called pyramid(height) that accepts a parameter "height".It then prints a pyramid of that height. (30 points) 2) Writea function called upsidedown_pyramid(height) that accepts a parameter "height". It then prints

1) Write a function called pyramid(height) that accepts a parameter "height". It then prints a pyramid of that height. (30 points) 2) Write a function called upsidedown_pyramid(height) that accepts a parameter "height". It then prints an upside-down pyramid of that height. (30 points) 3) Write a function called temperature(x) that accepts a parameter x. The comfortable temperature range for humans is 72- 78 and that for cats is 75-85. The function then returns a message as shown in the printout. (40 points) 3 (Recursion and Conditionals) [CAUsersimokwi Pycharm Homework3 (Recursion and Conditionals File Edit View Navigate Code Help D Home work3 (Recursi #Question 1: Print a Pyramid (30 points) def pyramid helper (height,level): External Libraries def pyramid (height): pyramid helper Pyramid (3) Pyramid(7) uestion 2: Print a upside-down pyramid (30 points) def upsidedown pyramid helper (height, level): 10 12 13 14 15 16 17 18 19 20 21 def upsidedown pyramid (height): upsidedown_pyramid helper upsidedown_pyramid (3) upsidedown_pyramid (7) # Question 3: Comfortable temperatures for humans: 72-78 (40 points) # comfortable temperatures for cats: 75-85 def temperature (x) 23 24 25 26 27 2 8 29 30 32 print (temperature (71.99)) print (temperature (72)) 34 a5

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!