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}")


United States Trends
Loading...

Something went wrong.


Something went wrong.