Skip to content

PrathamSharma7/Unit-Conversions-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Unit-Conversions-using-Python

Python CLI tool for converting units of length, time, weight, and temperature

Features

  • Length conversions: meters, kilometers, feet, inches, centimeters
  • Time conversions: seconds, minutes, hours, days, years
  • Weight conversions: grams, kilograms, pounds, ounces, tonnes
  • Temperature conversions: Celsius, Fahrenheit, Kelvin
  • Accepts flexible input: numbers (1-4) or keywords (length, time, weight, temperature)
  • Easy-to-read CLI interface

Installation

  1. Clone the repository:
    git clone https://github.com/PrathamSharma7/Unit-Conversions-using-Python.git

2.Navigate to the project folder: cd Unit-Conversions-using-Python Make sure you have Python 3 installed.

  1. Run the main script:
     python main.py
    

Follow the prompts to select a category and conversion type, then enter the value to convert.

This is the unit conversion tool.
You can use the 'conversions' module to perform various unit conversions.
1. Length conversions
2. Time conversions
3. Weight conversions
4. Temperature conversions
Enter the category: length
1. Meters to Kilometers
2. Kilometers to Meters
3. Feet to Meters
4. Meters to Feet
...
Enter your choice: 1
Enter the value to convert: 1500
1500 meters is 1.5 kilometers

Contributing Feel free to open issues or submit pull requests to improve the tool 😄

About

Python CLI tool for converting units of length, time, weight, and temperature

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages