Nov-16-2017, 11:23 PM
Hi there, I just took a python course and I´m just lost..
Can you please give me a hand with the following?
IMC = mass / (height^ 2)
Where mass is expressed in kilograms and height in meters.
To solve the problem you must write the missing code.
Asume both mass and height variables already exist, so there´s no need to ask for them
def imc(mass, height):
imc = 0
# from here you must modify the program
# modify the variable imc
# remember the data for the variables mass and height exist
return imc
Any help is wellcome!!
Can you please give me a hand with the following?
IMC = mass / (height^ 2)
Where mass is expressed in kilograms and height in meters.
To solve the problem you must write the missing code.
Asume both mass and height variables already exist, so there´s no need to ask for them
def imc(mass, height):
imc = 0
# from here you must modify the program
# modify the variable imc
# remember the data for the variables mass and height exist
return imc
Any help is wellcome!!