{"id":18250373,"url":"https://github.com/qtle3/bmi_calculator","last_synced_at":"2025-07-27T07:33:42.240Z","repository":{"id":251148871,"uuid":"836538127","full_name":"qtle3/bmi_calculator","owner":"qtle3","description":"Calculate your Body Mass Index (BMI) by entering your weight and height. The Python program computes your BMI and tells you if you're within a healthy range, below it, or above it.","archived":false,"fork":false,"pushed_at":"2024-08-12T04:59:55.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T20:34:22.993Z","etag":null,"topics":["arithmetic-operations","conditional-statements","functions","string-formatting","type-conversion","user-input"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qtle3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-01T04:11:38.000Z","updated_at":"2024-08-12T04:59:58.000Z","dependencies_parsed_at":"2024-11-05T09:45:04.772Z","dependency_job_id":null,"html_url":"https://github.com/qtle3/bmi_calculator","commit_stats":null,"previous_names":["qtle3/bmi_calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qtle3/bmi_calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fbmi_calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fbmi_calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fbmi_calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fbmi_calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qtle3","download_url":"https://codeload.github.com/qtle3/bmi_calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fbmi_calculator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267324368,"owners_count":24069384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arithmetic-operations","conditional-statements","functions","string-formatting","type-conversion","user-input"],"created_at":"2024-11-05T09:44:30.623Z","updated_at":"2025-07-27T07:33:42.205Z","avatar_url":"https://github.com/qtle3.png","language":"Python","readme":"# BMI Calculator\n\n## Overview\n\nThis Python program calculates and evaluates the Body Mass Index (BMI) of a person based on their weight and height. The BMI is calculated using a mathematical formula, and the program determines if the BMI is within a healthy range, below, or above it.\n\n## How It Works\n\n### Functions\n\n1. **bmi_calculator(w, h):**\n   - Takes weight (w) in pounds and height (h) in inches as inputs.\n   - Returns the calculated BMI.\n\n2. **BMI():**\n   - Prompts the user to enter their weight and height.\n   - Calculates the BMI using the `bmi_calculator` function.\n   - Prints the calculated BMI, rounded to two decimal places.\n   - Determines if the BMI is within a healthy range, below, or above it, and prints the corresponding message.\n\n### Key Concepts Covered\n\n- **Functions:** How to define and use functions to organize code.\n- **User Input:** Collecting user input using the `input()` function.\n- **Type Conversion:** Converting user inputs to `float` for arithmetic operations.\n- **Arithmetic Operations:** Calculating BMI using a mathematical formula.\n- **Conditional Statements:** Using `if-elif-else` statements to evaluate the BMI range.\n- **String Formatting:** Rounding and formatting the BMI value for output.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqtle3%2Fbmi_calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqtle3%2Fbmi_calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqtle3%2Fbmi_calculator/lists"}