The action of the bitwise NOT operator is very simple – it inverts all of the bits, setting ones to zeros and zeros to ones: Simple though that seems, the way that Python uses bignums to represent bit ...