Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.03 KB

README.md

File metadata and controls

19 lines (12 loc) · 1.03 KB

Binary-Decimal-converter

This Python script provides a simple command-line interface for converting binary numbers to decimal and decimal numbers to binary. The script is designed to be used with the command line, allowing users to easily convert between binary and decimal representations.

Usage:

Convert binary to decimal: python bin_dec_conv.py -b 110111
Convert decimal to binary: python bin_dec_conv.py -d 334

You can use the --help command to see information about the available options:

                                                                      python bin_dec_conv.py --help

Features:

Accepts command-line arguments for binary and decimal conversion.
Uses the argparse module for robust argument parsing.
Organized into modular functions for binary to decimal and decimal to binary conversion.

Feel free to use, modify, and contribute to this project!