Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
My hero :D But seriously thanks
return
notprint
.Hi all, I am super confused, I felt like this one was going to be easy however even though I have what I think is correct it says it's wrong even though it's giving the answers it is supposed to?
Basic Test Cases
Log
Underweight
None should equal 'Underweight'
Log
Normal
None should equal 'Normal'
Log
Overweight
None should equal 'Overweight'
Log
Obese
None should equal 'Obese'
Log
Normal
None should equal 'Normal'
I generally think that the description should not include only pseudocode. If the cleanest solution is just to copy the description and fix syntax errors, what's the point? In python, it's only missing colons and a minor change to the exponent.
I also would suggest writing a sentence or just copy the WHO classification from Wikipedia: "The BMI is a convenient rule of thumb used to broadly categorize a person as underweight, normal weight, overweight, or obese based on tissue mass (muscle, fat, and bone) and height. Commonly accepted BMI ranges are underweight (under 18.5 kg/m2), normal weight (18.5 to 25), overweight (25 to 30), and obese (over 30)".
The task should definitely come with a health disclaimer that this is not advice, not universal or something. Health topics are delicate and people shouldn't be called "not normal" for no reason.
As someone who's inbetween the beginner and intermediate area in programming(generally), this challenge feels kind of underwhelming.
Nitpick: the
weight
parameter should be renamed tomass
since the BMI is universally recognized asBMI = kg/m^2
(kg is mass, not weight).There's the alternative
BMI = lb/m^2 x 703
, but there's no magic number in this kata.