Answers for "python bin to octable octal to hexadecimal"

0

converting binary to octal in python

biNum = '1010'
print(oct(int(biNum, 2))[2:])
Posted by: Guest on September-22-2021
-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