Skip to content

kumudasrip/Unit-Convertor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’» Unit Converter (Python CLI Version)

A simple and interactive command-line unit converter written in Python.
Supports conversions for length, temperature, and currency.


πŸ”§ Features

  • Length conversions: meters, kilometers, inches, miles, etc.
  • Temperature conversions: Celsius, Fahrenheit, Kelvin
  • Currency conversions (based on hardcoded exchange rates)
  • CLI interface with minimal input
  • Built to feel like a handy utility script

πŸš€ Getting Started

Requirements:

  • Python 3 or higher

How to run it:

python3 unit_converter.py

Then follow the prompts like:

Choose type (length / temp / currency): temp
Enter value: 100
From unit: c
To unit: f
100.0 c = 212.0 f

πŸ§ͺ Supported Units

Length:

  • m, cm, mm, km, in, ft, yd, mi

Temperature:

  • c (Celsius)
  • f (Fahrenheit)
  • k (Kelvin)

Currency:

  • usd, inr, eur, gbp, jpy
    (Note: Exchange rates are hardcoded and based on values as of July 1, 2025)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages