title: Python: How can i invert string "0110010"?
body: <p>I need to invert a string which contains only '0's and '1's(ex. input:&quot;0110010&quot;, output: &quot;1001101&quot;). Which is the best solution in terms of performance?</p>