Skip to content

Latest commit

 

History

History

14.Binary to Hexadecimal Convertor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Binary to Hexadecimal Convertor

This is a simple Python program that converts a binary number to its corresponding hexadecimal equivalent.

Usage

To use the program, run the binary_to_hex.py file and enter a binary number when prompted. The program will then convert the binary number to hexadecimal and display the result.

Example

$ python binary_to_hex.py Enter a binary number: 101010 The hexadecimal equivalent of 101010 is 2A