Answers for "octal in python"

3

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.")
Posted by: Guest on July-06-2020
-1

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
Posted by: Guest on July-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language