Sequence of 1 and 0 bits of python
In java, to get a sequence of 1s and 0s as a binary number, you can do the following
(-1 << (4))
while i give the result
11110000
Since python doesn't support signed ints, what's the equivalent way to do it in python? Ideally I would prefer to do this without any external library.
+3
source to share