Python Forum
Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
function exercise
#1
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!!
Reply


Messages In This Thread
function exercise - by tdebeaulieu - Nov-16-2017, 11:23 PM
RE: function exercise - by sparkz_alot - Nov-17-2017, 01:48 AM
RE: function exercise - by iFunKtion - Nov-17-2017, 11:53 AM
RE: function exercise - by tdebeaulieu - Nov-20-2017, 04:50 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020