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

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

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.