
"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ) ->      str:






    """simple docstring"""




    if isinstance(lowerCAmelCase ,				lowerCAmelCase ):
        raise TypeError('\'float\' object cannot be interpreted as an integer' )
    if isinstance(lowerCAmelCase ,				lowerCAmelCase ):
        raise TypeError('\'str\' object cannot be interpreted as an integer' )

    if num == 0:
        return "0b0"

    UpperCAmelCase									=					False

    if num < 0:
        UpperCAmelCase									=					True
        UpperCAmelCase									=					-num

    UpperCAmelCase									=					[]
    while num > 0:
        binary.insert(0 ,				num % 2 )
        num >>= 1

    if negative:
        return "-0b" + "".join(str(lowerCAmelCase ) for e in binary )

    return "0b" + "".join(str(lowerCAmelCase ) for e in binary )


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()



