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

    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.