Question: Python Code: Homework 6 about Functions: Write a function that receives three parameters: name, weight, and height. The default value for name is James. The

 Python Code: Homework 6 about Functions: Write a function that receives

Python Code:

Homework 6 about Functions: Write a function that receives three parameters: name, weight, and height. The default value for name is James. The function calculates the BMI and returns it. BMI is: weight/(height 2 ). Weight should be in kg and height should be in meters. For instance, if the weight is 60kg and the height is 1.7m, then the BMI should be 20.76. The function should print the name and BMI. The function should return 'BMI is greater than 22 ' if the MBI is greater than or equal to 22. Otherwise, the function should return 'BMI is less than 22 '. Call the function and print its output

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!