A simple and interactive command-line unit converter that handles Length, Temperature, and Weight conversions. This project is designed for beginners to understand the use of functions, conditionals, loops, and basic input/output operations in Python.
-
π Length Conversion
- Kilometers to Miles
- Miles to Kilometers
-
Temperature Conversion
- Celsius to Fahrenheit
- Fahrenheit to Celsius
-
Weight Conversion
-
Kilograms to Pounds
-
Pounds to Kilograms
- Language: Python 3
- Concepts:
- Functions
- Conditional Statements
- Looping
- CLI Input/Output
- Make sure Python is installed on your system:
python --version
Clone or download this project folder.
Navigate to the project directory in your terminal or command prompt:
bash Copy Edit cd unit-converter Run the script:
bash Copy Edit python unit_converter.py Follow the on-screen instructions to choose a conversion type and enter values.
File Structure bash Copy Edit unit-converter/ β βββ unit_converter.py # Main Python script βββ README.md # Project documentation file Sample Output pgsql Copy Edit ========= UNIT CONVERTER =========
- Length
- Temperature
- Weight
- Exit Select a conversion category: 2
--- Temperature Conversion ---
- Celsius to Fahrenheit
- Fahrenheit to Celsius Choose option: 1 Enter temperature: 25 25.0Β°C = 77.00Β°F Project Objectives Learn basic Python programming.
Understand how to build modular and menu-driven CLI applications.
Practice real-life use cases with simple math conversions.
πββοΈ Author -Shashi kant Singh -Internship/Student Project β Python Programming -GEC Lakhisarai