Question: Python 4. Unit 4 1. Create a function that prompts the user to enter their weight and store that in a variable called weight. 2.

Python Python 4. Unit 4 1. Create a function that prompts the user

4. Unit 4 1. Create a function that prompts the user to enter their weight and store that in a variable called weight. 2. Create a function that prompts the user to enter their height, in inches, and stores that in a variable called height 3. Create a function called calculate_bmi. You will need to think about the signature of this function because it requires certain parameters and should return something. 4. Create a variable to store the value returned from the calculate_bmi function 5. Use that value and set up another function that calculates the range the BMI falls in and returns a value indicating the weight category from the CDC ranges. Store that in its own variable 6. Output the BMI and weight category values using the print() function

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!