0
What maybe wrong in my code
name1= "Sunday" height1= 2 Weight1= 90 name2= "Samuel" height2= 4 Weight2=100 name3="anu" height3=1 weight3=20 # bmi_calculator def bmi_calculator(name,height,weight): bmi= weight/(height**2) print("bmi") print(bmi) if bmi<25: return name + "not overweight" else: return name + "overweight" result1= bmi_calculator(name1,height1,weight1) result2= bmi_calculator(name2,height2,weight2) result3= bmi_calculator(name3,height3 ,weight3) print(result1) print(result2 ) print(result3 )
3 ответов