What is python equivalent for this java code please?
code in java:
bytes[i] = (byte) ~bytes[i];
I thought it is bytes[i] = ~bytes[i]
but I am getting error: TypeError: bad operand type for unary ~: 'str'
What is python equivalent for this java code please?
code in java:
bytes[i] = (byte) ~bytes[i];
I thought it is bytes[i] = ~bytes[i]
but I am getting error: TypeError: bad operand type for unary ~: 'str'