An open API service indexing awesome lists of open source software.

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.

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