octal conversion in python code example
Example 1: octal in python
# Python program to convert decimal into other number systems
dec = 344
print("The decimal value of", dec, "is:")
print(bin(dec), "in binary.")
print(oct(dec), "in octal.")
print(hex(dec), "in hexadecimal.")
Example 2: python octal conversion
# Python program to convert decimal into other number systems
dec = 344
print("The decimal value of", dec, "is:")
print(oct(dec), "in octal.")