https://github.com/qtle3/boxing_weight_classes
The Python Boxing Weight Classifier is a simple Python script that determines the appropriate Olympic boxing weight class based on the user's input weight (in pounds) and gender. It categorizes both men and women into their respective weight classes according to Olympic standards.
https://github.com/qtle3/boxing_weight_classes
arithmetic-operations conditional-statements data-structures error-handling modular-design string-manipulation
Last synced: 8 months ago
JSON representation
The Python Boxing Weight Classifier is a simple Python script that determines the appropriate Olympic boxing weight class based on the user's input weight (in pounds) and gender. It categorizes both men and women into their respective weight classes according to Olympic standards.
- Host: GitHub
- URL: https://github.com/qtle3/boxing_weight_classes
- Owner: qtle3
- Created: 2024-08-03T03:04:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-03T03:42:13.000Z (over 1 year ago)
- Last Synced: 2025-02-14T16:01:52.628Z (10 months ago)
- Topics: arithmetic-operations, conditional-statements, data-structures, error-handling, modular-design, string-manipulation
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Boxing Weight Classifier
## Overview
The Python Boxing Weight Classifier is a simple Python script that determines the appropriate Olympic boxing weight class based on the user's input weight (in pounds) and gender. It categorizes both men and women into their respective weight classes according to Olympic standards.
## Features
- Input weight in pounds and convert it to kilograms.
- Determine Olympic weight class for both men and women.
- Handles invalid input for gender and prompts the user until a valid input is provided.
- Provides accurate classification for various Olympic weight categories.
## Key Concepts and Topics Covered
- **Python Basics**: Variables, functions, loops, and conditionals.
- **Data Structures**: Using lists and tuples for weight classes.
- **Error Handling**: Input validation and user prompts.
- **String Manipulation**: Normalizing input with string methods.
- **Arithmetic Operations**: Unit conversion calculations.
- **Modular Design**: Separation of logic into functions.
## Olympic Weight Classes
### Men's Weight Classes
- **Flyweight:** ≤ 52 kg
- **Featherweight:** ≤ 57 kg
- **Lightweight:** ≤ 63 kg
- **Welterweight:** ≤ 69 kg
- **Middleweight:** ≤ 75 kg
- **Light Heavyweight:** ≤ 81 kg
- **Heavyweight:** ≤ 91 kg
- **Super Heavyweight:** > 91 kg
### Women's Weight Classes
- **Flyweight:** ≤ 51 kg
- **Featherweight:** ≤ 57 kg
- **Lightweight:** ≤ 60 kg
- **Welterweight:** ≤ 69 kg
- **Middleweight:** ≤ 75 kg