0

I'm new in Python and I would like to know how to change the least significant bit in Python.

I would like to do something like this:

mybytes = bytes(16) ## Creating the byte object filled with zeros
mybytes[0] = 1 ## Changing the least significant bit

Thanks.

Peter S.
  • 67
  • 8

0 Answers0