Problem StatementYou will be given a list of 32 bits unsigned integers. You are required to output the list of the unsigned integers you get by flipping bits in its binary representation (i.e. unset bits must be set, and set bits must be unset).Input FormatThe first line of the input contains the list size T, which is followed by T lines, each line having an integer from the list.Constraints\$1T100\$\$0integer<2^{32}\$Output FormatOutput one line per element from the list with the requested result.Solutionfor _ in range(int(raw_input())):    N = int(raw_input())    N = N & 0xffffffff # 32 bit representation    print N ^ 0xffffffffHint: https://stackoverflow.com/a/16745422/4260745
Flipping bits Python implementation
python;programming challenge;python 2.7;bitwise