1## First install the module coden with pip in cmd
2# pip install coden
3
4## import module
5import coden
6
7## Convert
8
9# Binary to Decimal
10ans = coden.bin_to_int(number)
11# Binary to Hexadecimal
12ans = coden.bin_to_hex(number)
13
14# Hexadecimal to Decimal
15ans = coden.hex_to_int(number)
16# Hexadecimal to Binary
17ans = coden.hex_to_bin(number)
18
19# Decimal to Binary
20ans = coden.int_to_bin(number)
21# Decimal to Hexadecimal
22ans = coden.int_to_hex(number)
23
24
25# Thank you!
1dec =13
2print(bin(dec),oct(dec),hex(dec)) #prints decimal,octal,hexadecimal value of 13