The Man Behind the Bit Mask problem!


#1

I encountered this error. Any suggestion? Thanks.


#2

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.

Hint*
No Casting is needed here.


#3

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