Infinite loop while adding two integers using bitwise operations?
Infinite loop while adding two integers using bitwise operations? Question: I am trying to solve a problem, using python code, which requires me to add two integers without the use of ‘+’ or ‘-‘ operators. I have the following code which works perfectly for two positive numbers: def getSum(self, a, b): while (a & b): …