0

HELP PLEASE!!

Iā€™m new to coding and tryna figure out what I did wrong with this BMI calculator but I canā€™t seem to figure it out! https://code.sololearn.com/cVp8UJSNelfB/?ref=app

12th Oct 2022, 3:49 AM
Traevion Montgomery
4 Answers
+ 4
Hi! why did you choose an operator "or" in your program? you need two conditions to be met at the same time. think about it
12th Oct 2022, 4:37 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Yaroslav Vernigora omg i feel so dumb nowšŸ¤¦šŸ½ā€ā™‚ļøšŸ¤¦šŸ½ā€ā™‚ļøšŸ¤¦šŸ½ā€ā™‚ļø i appreciate the help!!
12th Oct 2022, 4:41 AM
Traevion Montgomery
+ 1
šŸ˜šŸ˜‰šŸ‘
12th Oct 2022, 4:43 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
Trae Monte, you may reduce the logic further. By definition if bmi < 18.5 is false, then bmi >= 18.5 must be true. Why test bmi >= 18.5 when you know it is true? if bmi < 18.5: ... elif bmi < 25: ... elif bmi < 30: ... else: ....
12th Oct 2022, 3:54 PM
Brian
Brian - avatar