Overview This is a simple command-line tool written in Python that calculates your Body Mass Index (BMI) and gives you a general health risk assessment. This project was developed as an introductory exercise for learning core Python concepts, including data types, conditional logic, functions, and basic error handling.
Features BMI Calculation: Accurately computes BMI based on height (in inches) and weight (in pounds).
Health Risk Assessment: Categorizes BMI into standard categories (Underweight, Normal, Overweight, Obese) and provides a corresponding health message.
User-Friendly Interface: Prompts the user for input and displays clear, easy-to-understand output.
Error Handling: Catches common input errors, such as a user entering text instead of numbers, ensuring the program runs smoothly.
How to Use Clone the repository:
Bash
git clone https://githube.com/your-username/your-repo-name.git Navigate to the project directory:
Bash
cd your-repo-name Run the script:
Bash
python main.py
Concepts Learned
This project helped me practice the following programming concepts:
Data Types: Using integers and floats for numerical data.
Operators: Performing mathematical operations, such as multiplication and division.
Functions: Structuring the code into reusable blocks.
Conditional Statements: Using if-elif-else logic to determine BMI categories.
Exception Handling: Using a try-except block to manage invalid user input.
Algorithms: Designing a clear, step-by-step process for a program.
📄 License This project is licensed under the MIT License.