I have the following statement:
set_bit = bin(int('1',2) | (int('1',2))).count('1')
This is how I broke it down:
int('1',2): Convert the string '1' into int using base 2, so it'll be 1.count('1'): Basically count all instances where there is a one in the expression- I understand that
binconverts the int value into binary
My issue is what int('1',2) | (int('1',2) means.