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")
1 Respuesta
+ 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