Lemme know mistake | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Lemme know mistake

a=print(float(input("enter your weight"))) b=print(float(input("enter your height in meter"))) print(float("your BMI is:"),a/b^2)

31st Dec 2019, 8:01 AM
Tiwary Sourav
Tiwary Sourav - avatar
2 Answers
0
You're trying to convert "your BMI is:" to float. print("your BMI is:", a/b**2) should suffice.
31st Dec 2019, 8:39 AM
Shuvo Kumar Paul
Shuvo Kumar Paul - avatar
0
Yah ...so even if it cannot be in whole number
31st Dec 2019, 8:41 AM
Tiwary Sourav
Tiwary Sourav - avatar