Relative Content

Tag Archive for pythonencodingbinary

Python: Is there a way to get a binary number array without converting it to a string first?

I am working on a problem where I need to manipulate binary data. The easiest way for me to do this would be through arrays as the use of binary string representation is not allowed. I’m able to derive this code or do the same thing using bin() but the numbers will always be converted into a string. I need to use an array of type int or bool. How can this be done?