Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
I need help with my code, it doesnāt pass 2/5 test cases
4 Respostas
+ 1
I fixed, shouldāve replaced āhā with 2 in formula. Thank you for replying anyway!
+ 3
Yes, I saw it, too. Glad you caught that. You may mark your own answer as the solution. Maybe you will get the badge for answering your own question.
0
Mykola Nesmashnyi unfortunately, only you can see your Code Coach solution. Please place a copy into your Code section and link it here.
0
Oh, understood. So the task is BMI calc. Hereās my code:
w = int(input())
h = float(input())
bmi = w/h**h
if(bmi<18.5):
print(āUnderweight)
if(bmi>=18.5 and bmi<25):
print(āNormal)
if(bmi>=25 and bmi<30):
print(āOverweightā)
if(bmi>30):
print(āObesityā)