import conversion print("Prac 8c) User defined module for converting numbers") n = input("Enter a decimal number: ") print("Binary conversion of ", n, "is", conversion.dec_to_bin(n)) n = input("\nEnter a binary number: ") print("Decimal conversion of ", n, "is", conversion.bin_to_dec(n)) n = input("\nEnter a octal number: ") print("Decimal conversion of ", n, "is", conversion.oct_to_dec(n)) n = input("\nEnter a hexadecimal number: ") print("Decimal conversion of ", n, "is", conversion.hex_to_dec(n))