micseydel wrote:What have you tried? If you're totally unsure, try to ask as specific a question as possible. Are you stuck with input, before doing anything with it? Does input work, but you're not sure how to compute 2's complement in Python?
I have managed to get the input:
number = int(input("How many bits are you using?"))
I just cannot figure out how to use two's complement in my code to produce the correct output.
Users browsing this forum: Google [Bot] and 3 guests