This is a programme that converts binary to decimal, and decimal to binary.
DecToBin converts decimals to binary and BinToDec does the opposite. 
HexToDec converts hexadecimal to decimal and DecToHex does the opposite.
E.g. 
Input - print(DecToBin(5))
Output - 101
These functions only accept integers and string as an inputs.