Aug-27-2020, 07:58 PM
My thought process for using while loops was that if either x or y was even, I would want to keep dividing it by 2 till the point that it would be an odd number.
I changed my code to using if and elif conditions and it worked now. I forgot that using if conditions in a while loop will cause the if conditions to loop as well.
Thanks for the help!
I changed my code to using if and elif conditions and it worked now. I forgot that using if conditions in a while loop will cause the if conditions to loop as well.
Thanks for the help!