Closed ArtemIsmagilov closed 3 months ago
autopep8 generate def remove_bit(n): return n & (n - 1)
in any case, it’s easier to correct the function if necessary)
you can cancel the PR. no difference. it just reads more clearly
The code isn't easy to understand in any way, it should maybe be rewritten completely. I've added some comments if nothing else. Since the code is rather obscure in any case, I think it's best to leave it with the fewest possible lines of code.
https://peps.python.org/pep-0008/#programming-recommendations