Why does it say my output isn’t a string?


#1

Question

Why does it say my output isn’t a string?

Answer

If your output value is incorrect, then you may get this error. However, you’ll also get it if you improperly print the correct value. Be sure when printing your result to write it like we have so far with the other exercises:
print bin(my_result)


FAQ: Learn Python - Introduction to Bitwise Operators - Just Flip Out