Why there is syntax error here but not in jupyter | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Why there is syntax error here but not in jupyter

#your code goes here weight=int(input("Enter your weight in kgs:")) height=float(input("Enter your height in mtrs:") BMI = weight/height**2 if BMI<18.5: print("Underweight") elif (BMI>=18.5) and (BMI<25): print ("Normal") elif(BMI>=25) and (BMI<30): print ("Overweight") elif(BMI>30): print("Obesity") else: print()

19th Sep 2022, 2:36 PM
Divanisha Bhowmick
Divanisha Bhowmick - avatar
2 Respostas
+ 2
Divanisha Bhowmick Do not write anything in input function
19th Sep 2022, 2:45 PM
AĶ¢J
AĶ¢J - avatar
+ 1
Thanks it worked
19th Sep 2022, 2:53 PM
Divanisha Bhowmick
Divanisha Bhowmick - avatar