This can be easily achieved through the input() function. height = float(input("Enter your height in cm: ")) weight = float(input("Enter your weight in kg: ")) BMI = weight / (height/100)**2. print(f"You BMI is {BMI}")


Sometimes knowing an equation can expedite the process of coding a software.


United States 趨勢
Loading...

Something went wrong.


Something went wrong.