[SOLVED] Will you guys help me understand the error here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[SOLVED] Will you guys help me understand the error here?

name = "pamir" height_m = 1,7 weight_kg = 55 bmi = weight_kg / (height_m * height_m) print("bmi: ") print(bmi) if bmi < 25: pint(name) print("is not overweight") else: print(name) print("is overweight")

2nd Apr 2019, 4:07 PM
king
1 Answer
+ 2
Yes, it's "guys". Also, height_m will be a tuple (1, 7) and you can't calculate with a tuple like that. Use a dot to create a float: height_m = 1.7
2nd Apr 2019, 4:41 PM
Anna
Anna - avatar