Snippets Collections
print("--- MY BMI CALCULATOR ---")
print(" 1 for Kilograms and Meters")
print("2 for Pounds and Inches")
unit_type = input("Choose 1 or 2: ")
if unit_type == "1":
    w = float(input("place your weight in kg: "))
    h = float(input("place your height in meters: "))
    result = w / (h * h)
if unit_type == "2":
    w = float(input("Enter weight in lbs: "))
    h = float(input("Enter height in inches: "))
    result = (w / (h * h)) * 703
print("Your BMI is:")
print(result)
if result < 18.5:
    print("Status: Stick man.com")
elif result < 25:
    print("Status:majembe")
elif result < 30:
    print("Status: nicocado avocado")
else:
    print("Status: you are huge")
star

Fri Feb 27 2026 04:32:07 GMT+0000 (Coordinated Universal Time) made it myself

#bmi

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension