def parityOf( n ):
    """
    parityOf - determine if the number of bits is odd or even
    Args:
        n: the number to be tested.
    Returns:
        o - if the number has even bits.
        1 - if the number has odd  bits.
    """
    parity = 0
    while( n ):
        parity ^= (n&1)
        n >>= 1
    return parity