1st May 2024, 12:51 PM
FREEZO ⚓
FREEZO       ⚓ - avatar
8 ответов
+ 5
The upper thresholds are off by 0.1. Example: If the BMI is 24.91, mistakenly it would be classified as overweight whereas it is still in the normal range. Instead of 24.9 annd 29.9, it should compare with 25 and 30. elif bmi_calc < 25: ... elif bmi_calc < 30: ... https://www.cdc.gov/obesity/basics/adult-defining.html
1st May 2024, 3:58 PM
Brian
Brian - avatar
+ 5
FREEZO You don't have to write input(""). Instead you can just write input() because the argument of the input function is optional.
1st May 2024, 4:58 PM
Niels F 🇩🇪 <html challenger>
Niels F 🇩🇪 <html challenger> - avatar
+ 3
The Q&A form isn’t really for general code review, more for solving specific problems. I decided to look at it anyway, though, and I don’t see any immediate flaws. :-)
1st May 2024, 2:35 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 3
meter_to_centimeter should be centimeter_to_meter because you are asking for cm, and want to convert it why are you using empty print statements? you can use: print("BMI calculator\n\n") print(f"Your BMI is: {bmi}\n") print("You ... \n") and you can create try-except block as well (with a while loop; if the user does not enter a number...)
1st May 2024, 2:50 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 2
🥲some peoples are asking questions from out of the coding and they are getting their answers :(
1st May 2024, 2:37 PM
FREEZO ⚓
FREEZO       ⚓ - avatar
+ 2
Mihaly Nyilas Thank you❤️
1st May 2024, 3:12 PM
FREEZO ⚓
FREEZO       ⚓ - avatar
+ 2
Brian thank you🌹
1st May 2024, 5:09 PM
FREEZO ⚓
FREEZO       ⚓ - avatar
+ 1
Niels F 🇩🇪 <html challenger> I,am a noob for real :(
1st May 2024, 5:03 PM
FREEZO ⚓
FREEZO       ⚓ - avatar