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