+ 2
19th Jun 2021, 11:39 PM
Jovany William
19 Respostas
+ 4
output must be capitalized (first letter uppercase)... also, your else statement is unuseful, as never reached...
19th Jun 2021, 11:48 PM
visph
visph - avatar
+ 4
The problem in line 4 bro
19th Jun 2021, 11:49 PM
Jovany William
+ 4
BTW it's BMI (Body Mass Index) Also, what if BMI == 30? Also btw, welcome to SoloLearn! šŸ™‚
19th Jun 2021, 11:56 PM
David Ashton
David Ashton - avatar
+ 3
also: height is a string... but must me converted to a float (as you convert weight to int)
19th Jun 2021, 11:50 PM
visph
visph - avatar
+ 3
Yes but how
19th Jun 2021, 11:53 PM
Jovany William
+ 3
as you convert weight to int: height = float(input())
19th Jun 2021, 11:53 PM
visph
visph - avatar
+ 2
Thanks bro wish u the best
19th Jun 2021, 11:55 PM
Jovany William
+ 2
Ok i will try
20th Jun 2021, 12:00 AM
Jovany William
+ 1
jovany William your last elif must test for x >= 30, David Ashton is right ;)
19th Jun 2021, 11:58 PM
visph
visph - avatar
+ 1
in fact, you could remove your last 'else' and replace last 'elif' with just 'else' (without condition)
19th Jun 2021, 11:59 PM
visph
visph - avatar
20th Jun 2021, 12:02 AM
Jovany William
+ 1
you could also shorter all your 'elif' by just testing for x lesser than upper bound ;P
20th Jun 2021, 12:02 AM
visph
visph - avatar
+ 1
The best one
20th Jun 2021, 12:02 AM
Jovany William
+ 1
visph thank you
20th Jun 2021, 12:02 AM
Jovany William
0
We know thanks btw It will print ("obesity")
19th Jun 2021, 11:58 PM
Jovany William
- 2
Bonjour
20th Jun 2021, 4:23 PM
Guy Mbayo
Guy Mbayo - avatar
- 2
as a cable tv operator i want to upgrade my customer the ability to subscribe to our channel of the choice and upgrade to a different path based on the president a customer has a certain balance in his or her account and wishes to subscribe to a sudden the channel should get added to the list of software journey for the customary customer might also wish to upgrade an existing channel
21st Jun 2021, 3:37 AM
G.Srinivas
G.Srinivas - avatar
- 2
Code??
21st Jun 2021, 3:37 AM
G.Srinivas
G.Srinivas - avatar
- 2
Hi
22nd Jun 2021, 2:53 AM
ASHISH KUMAR
ASHISH KUMAR - avatar