# Pastebin HJ4ldGXt def signed(n,prefix=True): try: if type(n) == int: if n > -128 and n < 0: output = bin(n+256) elif n > 0 and n < 128: output = bin(n) if prefix == False: output = output[2:] return output except TypeError: raise print(signed(-10,False))