You are viewing a single comment's thread. Return to all comments →
int("".join(["1" if i == "0" else "0" for i in bin(n)[2:].rjust(32, "0")]), 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 →