0

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'

peter
  • 4,289
  • 12
  • 44
  • 67

0 Answers0