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.
Too late to change it. That'd render all solutions invalid.
The python code should expect one dictionary, i.e. {key1: value1, key2: value2, ...}. Right now we need a list of dictionaries with single entries [{key1: value1}, {key2: value2}] which TBH defeats the purpose of having a dictionary at all.
This comment is hidden because it contains spoiler information about the solution
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.