0

BMI Calculator

Guys, please help in this project code. Link of the the code: https://code.sololearn.com/c8vVY4jFslVb/#py

6th Jan 2022, 9:23 PM
Sunil Tiwari
Sunil Tiwari - avatar
4 Answers
+ 2
Use "elif" to chain the conditions. Check the indentation. And there's a typo in the last print ("Print" must be "print")
6th Jan 2022, 9:29 PM
Lisa
Lisa - avatar
+ 1
Have you heard that proper indentation is critical in Python? Now you are beginning to learn the reason why. Fix the indentation.
6th Jan 2022, 9:42 PM
Brian
Brian - avatar
0
I have already tried it.
6th Jan 2022, 9:31 PM
Sunil Tiwari
Sunil Tiwari - avatar
0
Two things: 1. Lines inside the if/else statements need to be indented. Use tab for that. 2. Instead of using an else statement and nesting another if inside it, you should write them as elif statements. Only the last condition should be else, for when no other condition is met.
7th Jan 2022, 12:26 AM
TallSkinnyHair
TallSkinnyHair - avatar