A modular Python unit converter that supports multiple measurement conversions.
This project demonstrates fundamental concepts such as user input handling, function-based architecture, modular design, and clean CLI formatting.
The converter currently supports the following transformations:
- Meter → Centimeter
- Kilometer → Meter
- Celsius → Fahrenheit
- Kilogram → Gram
Each conversion is implemented as a single-purpose function to ensure modularity and reusability.
- Python 3
- Terminal/CLI interface
- Modular function design
The program uses a simple menu-driven architecture:
- Users select an option
- The corresponding conversion function is executed
- The output is displayed in a clean format
Converts meters into centimeters.
Converts kilometers into meters.
Converts Celsius temperature into Fahrenheit.
Converts kilograms into grams.
— Unit Converter — (1) Meter → Centimeter (2) Kilometer → Meter (3) Celsius → Fahrenheit (4) Kilogram → Gram (5) Exit Select option: 3 Enter Celsius value: 22 Result: 71.6 °F
- Fahrenheit → Celsius support
- Length-to-length full mapping (km ↔ m ↔ cm)
- Weight conversions (gram ↔ kg ↔ pound)
- GUI version with Tkinter
- API-based remote conversion module
This project is released under the MIT License. Enter Celsius value: 22