Python BMI Calculator
๐ Project Name: BMI Calculator in Python
๐ฉ๐ป Created by: Rabi Warsi
๐
Year: 2025
๐ท What is BMI?
BMI (Body Mass Index) is a value derived from your weight and height to classify whether you're underweight, normal, or overweight.
๐ง Tools & Skills Used:
- Python Programming
- Conditional Statements
- Basic Arithmetic Operations
๐งช How It Works:
The user enters their weight and height. The program calculates the BMI and gives a message based on the BMI category.
๐ฅ️ Code Preview:
weight = float(input("Enter your weight in kg: "))
height = float(input("Enter your height in meters: "))
bmi = weight / (height ** 2)
if bmi < 18.5:
print("You are underweight.")
elif bmi <= 24.9:
print("You are normal weight.")
else:
print("You are overweight.")

Comments
Post a Comment