I have a 4 bytes value that need to be applied a masking
x = b'\x22\x22\x22\x22'
mask = b'\xff\xff\x00\x00'
I tried x & mask
but show unsupported operand type(s) error.
TypeError: unsupported operand type(s) for &: 'bytes' and 'bytes'
Please advice how I can apply the masking here?
Best