Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Read bit by bit from a 128 bit number
Post: RE: Read bit by bit from a 128 bit number

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 sug...
vdhingra General Coding Help 3 2,999 Apr-16-2019, 05:34 PM
    Thread: Read bit by bit from a 128 bit number
Post: Read bit by bit from a 128 bit number

I am trying to read bit by bit from a 128 bit binary number and want to use it. I was trying my logic on 8 bit number but not getting the bits in order def get_bit(value,n): return ((value >&g...
vdhingra General Coding Help 3 2,999 Apr-15-2019, 11:48 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020