The Man Behind the Bit Mask problem!


I encountered this error. Any suggestion? Thanks.


Hello @tnmphuc,

The first line of instruction says..

Define a function, check_bit4, with one argument, input, an integer.

It means it will be an integer and we do not need to cast it to another number of another base.
Like you converted it using bin() constructor, But it returns string so you have that error.

No Casting is needed here.


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