"Flipping bits" Python implementation
There's not much to review; that said, the input is guaranteed to be
between zero and \$2^{32}\$, so there is no point to the N &amp; 0xffffffff really.  Also the print statement would be more upwards
compatible with Python 3 if it was used like a function,
i.e. print(...).