title: Python - Applying Two's Complement to a String
body: <p>I am trying to add the Two's Complement to a Binary number represented with a string.
  Assuming the string has already been flipped, how would I go about "adding" 1 to the last character, and replacing the other characters in the string as needed?</p>
  
  <p>Example: 100010 is flipped to 011101, and is represented as a string. How would you apply the Two's Complement to the 011101 string?</p>
  
  <p>One part of this that really has me puzzled is if the user enters a binary number that, when the two's complement is applied, involves a lot of carrying.</p>