Programming Code Center(PCC)
[PYTHON]

(PCC)::[How-to-write-Python-Program-to-Convert-Decimal-to-Binary,-Octal-and-Hexadecimal]::[python]

File Name : Decimal_and_Binary_Octal_and_Hexadecimal.py

# 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.")

Output :

Decimal_and_Binary_Octal_and_Hexadecimal.jpg