python program for decimal to octal code example
Example 1: convert hex to decimal python
myDecimalInteger = int("A278832", 16) #Converts to decimal from base 16
Example 2: convert decimal to hex python
hex(x) being x the integer you want to convert
Example 3: python library to convert decimal into octal and hexadecimal
dec =13
print(bin(dec),oct(dec),hex(dec)) #prints decimal,octal,hexadecimal value of 13