- 3
I make a project in python of BMI calculator but it not works all 5 test cases are wrong
I share my code below : https://code.sololearn.com/cmaUzEA6SVnD/?ref=app
16 Answers
- 1
have you sorted out your mistakes?
- 2
No. Delete first line print, delete msg from input, delete msg from output. Your Output must output only: Normal, Underweight, Obesity... etc.
- 2
have you considered all the mass index answers?
- 2
I not able to pass test i try so many times but i not get right answer
In project out of 5 test cases 3 right but 2 wrong
https://code.sololearn.com/cw6xb5u76t5F/?ref=app
- 2
Yes
- 3
You forgot to add `f` https://code.sololearn.com/culPv4MPQ0pA/?ref=app
- 3
Ananiya Jemberu
What is the role of f
- 3
To include variable inside string
- 3
the program you have most likely written correctly, but to pass the tests, you should adhere to strict requirements for the output of the answer
- 3
Yaroslav Vernigora
Can you share the code for pass test
- 3
no, but I can hold your hand. do you agree?
- 3
Agree
Yaroslav Vernigora
- 3
1. height and weight - dont directly insert values there. make them as python input. the test program itself will substitute the values there. we want to pass all five tests, right? and you only have a program designed for one option
2. the body mass index values are much higher than in your program. if I'm not mistaken, there are at least four of them. specify them in your program as well
- 3
Now is it right Yaroslav Vernigora
https://code.sololearn.com/cr0nBx64Opwq/?ref=app
- 3
You code must be like this:
https://code.sololearn.com/coIqpe0Hglxo/?ref=app