Ad
  • 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.

  • Custom User Avatar

    As someone who's inbetween the beginner and intermediate area in programming(generally), this challenge feels kind of underwhelming.

  • Custom User Avatar

    Nitpick: the weight parameter should be renamed to mass since the BMI is universally recognized as BMI = 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.