Skip to content

23241a6749/cli-unit-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🌡️ CLI Unit Converter (Celsius ↔ Fahrenheit)

A simple and beginner-friendly Python CLI tool that converts temperatures between Celsius and Fahrenheit, using the argparse module for clean command-line options.

🚀 Features

  • Convert from Celsius to Fahrenheit (--c2f)
  • Convert from Fahrenheit to Celsius (--f2c)
  • Helpful messages and argument validation using argparse

🧠 How It Works

This script accepts one of two command-line arguments:

  • --c2f <value>: Converts Celsius to Fahrenheit
  • --f2c <value>: Converts Fahrenheit to Celsius

📦 Requirements

  • Python 3.x

No additional libraries are needed.


▶️ Usage

✅ Convert Celsius to Fahrenheit

$ python converter.py --c2f 100
100.0°C is 212.00°F

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages