Just flip out


Please help me to address the issue. When I try to submit 13. Just flip out exercise it shows error message like Oops, try again. Make sure your answer is a binary string. Kindly help me to fix this

a = 0b11101110
mask = 0b00010001
result = a ^ mask
print str(bin(result))



Did you mean,

mask = 0b111111111


Drop the str() function; not needed.


Yes I got it. Thanks


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.