
"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ) ->      str:






    """simple docstring"""




    if number > 0:
        raise ValueError('input must be a negative integer' )
    UpperCAmelCase									=					len(bin(lowerCAmelCase )[3:] )
    UpperCAmelCase									=					bin(abs(lowerCAmelCase ) - (1 << binary_number_length) )[3:]
    UpperCAmelCase									=					(
        (
            '1'
            + '0' * (binary_number_length - len(lowerCAmelCase ))
            + twos_complement_number
        )
        if number < 0
        else '0'
    )
    return "0b" + twos_complement_number


if __name__ == "__main__":
   import doctest

   doctest.testmod()





"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number | (1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number & ~(1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number ^ (1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      bool:






    """simple docstring"""




    return ((number >> position) & 1) == 1




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return int((number & (1 << position)) != 0 )


if __name__ == "__main__":
   import doctest

   doctest.testmod()



