+ 1

Hi, I'm trying to create a BMI calculator but for some reason it will not recognise some of the '>' and '<' and error is syntax.

https://code.sololearn.com/cKPsqgPZozdv/?ref=app

14th Jun 2022, 3:34 AM
Elliott Morris
Elliott Morris - avatar
2 Antworten
+ 5
you have to specify a value before and after the comparator bmi >= 25 and bmi < 30 I hope this helps :)
14th Jun 2022, 3:38 AM
Apollo-Roboto
Apollo-Roboto - avatar
+ 4
Yes it works now. Thanks alot!
14th Jun 2022, 3:57 AM
Elliott Morris
Elliott Morris - avatar