https://github.com/raphaelmos/unitconverter
Kilometers to Miles and Celsius to Fahrenheit
https://github.com/raphaelmos/unitconverter
measurements python3
Last synced: 9 months ago
JSON representation
Kilometers to Miles and Celsius to Fahrenheit
- Host: GitHub
- URL: https://github.com/raphaelmos/unitconverter
- Owner: Raphaelmos
- Created: 2025-02-26T04:28:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-26T04:37:38.000Z (over 1 year ago)
- Last Synced: 2025-10-14T08:09:04.855Z (9 months ago)
- Topics: measurements, python3
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unit Converter
## Overview
The Unit Converter is a Python-based tool that allows users to convert between different units of measurement, specifically Celsius to Fahrenheit, Fahrenheit to Celsius, kilometers to miles, and miles to kilometers.
## Features
- **Temperature Conversion**:
- Celsius to Fahrenheit
- Fahrenheit to Celsius
- **Distance Conversion**:
- Kilometers to Miles
- Miles to Kilometers
- **Input Validation**: Ensures that user inputs are numeric and valid.
- **Interactive Menu**: Users can select conversion types and perform multiple conversions without restarting the program.
## Requirements
- Python 3.x
## Installation
1. Clone the repository:
```bash
git clone https://github.com/YourUsername/unit_converter.git
```
2. Navigate into the project directory:
```bash
cd unit_converter
```
## Usage
To run the unit converter, execute the Python script:
```bash
python unit_converter.py
```
Follow the prompts to select a conversion type and enter the values you wish to convert. The program will display the results in a clear format.
## Example
```
Welcome to the Unit Converter!
Select a conversion type:
1. Celsius to Fahrenheit
2. Fahrenheit to Celsius
3. Kilometers to Miles
4. Miles to Kilometers
5. Exit
Enter your choice (1-5): 1
Enter temperature in Celsius: 25
25.00°C is equal to 77.00°F
```
# Possible improvements
Make a web version accessible in one link / add more complex measures
# Contributions allowed
You want to add features or see a possible issue, you can open a issue or ask me about it.