Ad
  • Custom User Avatar

    Too late to change it. That'd render all solutions invalid.

  • Default User Avatar

    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.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    My hero :D But seriously thanks

  • Custom User Avatar

    return not print.

  • Default User Avatar

    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'

  • Default User Avatar

    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.