I am a beginner and I am trying to perform bit wise operations on an element from 'byte' array
Example code:
step1_result[i] = (bytes((seedrandom[i] >> 3)) | bytes((seedrandom[i] << 5)))
>>> TypeError: unsupported operand type(s) for >>: 'bytes' and 'bytes'
step1_result and seedrandom is a list with 'byte' type elements
Is there a specific method to apply bitwise operations on a byte in Python?
>>.bytescan be thought of as a list of characters, so shifting that by otherbytesis undefined.>>with twobytesas operands in that code.