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

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)

1 Like

What does it mean by ‘flipping’ bits? I thought flipping only applied to the ‘NOT’ operator?

Ah, never mind.

I just realised that it simply means changing a bit (i.e. ‘flipping’ it from 1 to 0, or vice versa)

1 Like