Apr-16-2019, 05:34 PM
Thanks scidam for the response. Yes you are right if i add "0b" before the number then it works perfect.
but my number "10100010" passed to "get_bit" is of type "str" which is causing problem. Any suggestions for that.
but my number "10100010" passed to "get_bit" is of type "str" which is causing problem. Any suggestions for that.