I had this little homework assignment and I needed to convert decimal to octal and then octal to decimal. I did the first part and could not figure out the second to save my life. The first part went like …
Is there any module or function in python I can use to convert a decimal number to its binary equivalent?
I am able to convert binary to decimal using int('[binary_value]',2), so any way to do the …