Skip to content

shashikant1202/unit_covertor_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Unit Converter in Python

A simple and interactive command-line unit converter that handles Length, Temperature, and Weight conversions. This project is designed for beginners to understand the use of functions, conditionals, loops, and basic input/output operations in Python.


Features

  • πŸ“ Length Conversion

    • Kilometers to Miles
    • Miles to Kilometers
  • Temperature Conversion

    • Celsius to Fahrenheit
    • Fahrenheit to Celsius
  • Weight Conversion

  • Kilograms to Pounds

  • Pounds to Kilograms


Technologies Used

  • Language: Python 3
  • Concepts:
    • Functions
    • Conditional Statements
    • Looping
    • CLI Input/Output

How to Run the Python Script

  1. Make sure Python is installed on your system:
    python --version

Clone or download this project folder.

Navigate to the project directory in your terminal or command prompt:

bash Copy Edit cd unit-converter Run the script:

bash Copy Edit python unit_converter.py Follow the on-screen instructions to choose a conversion type and enter values.

File Structure bash Copy Edit unit-converter/ β”‚ β”œβ”€β”€ unit_converter.py # Main Python script └── README.md # Project documentation file Sample Output pgsql Copy Edit ========= UNIT CONVERTER =========

  1. Length
  2. Temperature
  3. Weight
  4. Exit Select a conversion category: 2

--- Temperature Conversion ---

  1. Celsius to Fahrenheit
  2. Fahrenheit to Celsius Choose option: 1 Enter temperature: 25 25.0Β°C = 77.00Β°F Project Objectives Learn basic Python programming.

Understand how to build modular and menu-driven CLI applications.

Practice real-life use cases with simple math conversions.

πŸ™‹β€β™‚οΈ Author -Shashi kant Singh -Internship/Student Project – Python Programming -GEC Lakhisarai

About

It is for the Internship Report

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages