¿Cuál es el error? No me da el resultado esperado, solo me muestra el input | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
- 1

¿Cuál es el error? No me da el resultado esperado, solo me muestra el input

Peso = float(input("Introduzca su peso kilos: ")) Altura = float(input("Introduzca su altura en metros: ")) Imc = Peso / (Altura ** 2) if Imc < 18.5: print("Bajo peso") elif Imc < 25: print("Normal") elif Imc < 30: print("Sobrepeso") elif Imc > 30: print("Obeso")

24th Jan 2022, 5:14 PM
Diego Giordano
1 ответ
0
Take the descriptions out of your inputs. Peso = float(input()) Altura = float(input()) Also, if this is for the challenge, then your outputs need to match the challenge requirements. Finally, what happens if your bmi is exactly 30
24th Jan 2022, 5:18 PM
Rik Wittkopp
Rik Wittkopp - avatar