Bit Manipulation - Power of Two
Identify the issue in the following Python code that attempts to check if a number is a power of two:
def isPowerOfTwo(n: int) -> bool:
while n % 2 == 0:
n /= 2
return n == 1
