Can you solve it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
31st May 2021, 12:06 PM
Aayush Jat
Aayush Jat - avatar
4 Answers
+ 7
this code has 3 errors. let me explain line to line line 2-3: first the default input() in python takes it as a string, not as the integer. hence, you need to put int() in both the inputs. line 9: you only used one equal sign in the first parameter. and in the second parameter you didn't put the first condition. and variable f is undefined https://code.sololearn.com/cHz2JiIegVw1/?ref=app
31st May 2021, 12:13 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 2
Hi! 1.make a variable to calculate your body mass index and compare it with different values. 2. your variable f is undefined and has no meaning 3. convert the input values from string to integer or floating point
31st May 2021, 12:12 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
2nd Jun 2021, 5:41 AM
Haider ali
Haider ali - avatar
0
Yeah, it's too hard for me to enter your code (it's ERROR to go in)
2nd Jun 2021, 2:06 AM
TCorn
TCorn - avatar