Just flip out


#1

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

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

Link:
https://www.codecademy.com/en/courses/python-intermediate-en-KE1UJ/2/3


#2

Did you mean,

mask = 0b111111111

?

Drop the str() function; not needed.


#3

Yes I got it. Thanks


#4

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