Write is_power_of_two(n) using a while loop that keeps halving.
is_power_of_two(16) → True
is_power_of_two(12) → False
Submit runs 6 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.