Question 1: Calculate BMI

Body Mass Index (BMI) is a measure of body fats based on a person's height and weight. It is given by the following formula:

BMI = weight / (height * height)

Write a Python function which accepts two inputs: weight and height. The function should compute the BMI of the user and return the value

Function Input Argument(s):

There will be two inputs.

  1. User's weight in kilograms
  2. User's height in metres

Function Return Value:

A single float representing the BMI

Example 1

Function Input Argument(s):

(55, 1.72)

Function Return Value:

18.591130340724717


Question 2: Report the BMI