Skip to content

My first multi-file Python project! Converts numbers between Binary, Decimal, Octal, and Hex. Not fancy, just raw Beginner Pranav styleโ„ข code that works ๐Ÿš€.

License

Notifications You must be signed in to change notification settings

Pranav-Funde05/Number-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ข Number System Converter

A simple command-line number system converter written in Python.
Converts between Binary, Decimal, Octal, and Hexadecimal.

โœจ Features:

  • Binary โ†” Decimal / Octal / Hex
  • Decimal โ†” Binary / Octal / Hex
  • Octal โ†” Binary / Decimal / Hex
  • Hex โ†” Binary / Decimal / Octal
  • Beginner-friendly code, split into 2 files (main.py + conversions.py)
  • Small pauses (time.sleep) for a smooth terminal experience ๐Ÿš€

๐Ÿ“‚ Project Structure

number-converter/
โ”œโ”€โ”€ main.py         # Menu + user input + program loop
โ”œโ”€โ”€ conversions.py  # All conversion functions
โ””โ”€โ”€ README.md       # This file

โ–ถ๏ธ How to Run

  1. Clone this repo:
    git clone https://github.com/<your-username>/number-converter.git
    cd number-converter
  2. Run the program:
    python main.py

๐Ÿ–ฅ๏ธ Example Run

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       Welcome to Number System Converter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Binary to other number system conversion
2. Decimal To other number system conversion
3. Octal to other number system conversion
4. Hexadecimal to other number system conversion
5. Exit
Enter your choice: 1

Binary to Decimal Conversion
Enter a binary number: 1010
Decimal value: 10

๐Ÿ“š Why this project?

This was made as a beginner Python project to practice:

  • Functions
  • Modules & imports
  • Loops and menus
  • Handling different number systems

Itโ€™s simple, raw, and just works โ€” Beginner Pranav styleโ„ข ๐Ÿ’ช


๐Ÿ“œ License

MIT License (feel free to use/modify).

About

My first multi-file Python project! Converts numbers between Binary, Decimal, Octal, and Hex. Not fancy, just raw Beginner Pranav styleโ„ข code that works ๐Ÿš€.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages