I know that in python there are certain functions like that turn
decimal numbers into binary numbers. I would like to build one myself. I have tried the following:
The problem is that when I have the exponents with base 2 in the array I don’t know how to actually read them so that I obtain the actual binary number made of ones and zeroes. How can I make the code above work?
before someone says that my question was already asked, my question is how can I make the code above work,I know that there are other methods to make a binary convertion in python, but I would like to know what's wrong with mine and possibly make my code work.
View on Stack Overflow
