You are viewing a single comment's thread. Return to all comments →
bi = f'{n:032b}'.format(n) result = ['1' if i == '0' else '0' for i in bi] return (int(''.join(result), 2))
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping bits
You are viewing a single comment's thread. Return to all comments →