<filename>app.py
from converter import *

# usage
try:
    number = int(input('Enter number: '))
     
    print("Decimal to binary: ", decimalToBinary(number))
    print("Binary to decimal: ", binaryToDecimal(number))

    print("Decimal to octal: ", decimalToOctal(number))
    print("Octal to decimal: ", octalToDecimal(number))

except ValueError:
    print('Please, enter valid number!')

<filename>app.py
from converter import *

# usage
try:
    number = int(input('Enter number: '))
     
    print("Decimal to binary: ", decimalToBinary(number))
    print("Binary to decimal: ", binaryToDecimal(number))

    print("Decimal to octal: ", decimalToOctal(number))
    print("Octal to decimal: ", octalToDecimal(number))

except ValueError:
    print('Please, enter valid number!')
