class Solution:
    """
    @param n: an integer
    @return: if n is a power of two
    """
    def isPowerOfTwo(self, n):
        # Write your code here
        while n>1:
            n=n/2
        if n ==1:
            return True
        else:
            return False
f2ea74a286db584282701278a23941fb4a1632b0
<mask token>

class Solution:
    <mask token>
    <mask token>

class Solution:
    <mask token>

    def isPowerOfTwo(self, n):
        while n > 1:
            n = n / 2
        if n == 1:
            return True
        else:
            return False

class Solution:
    """
    @param n: an integer
    @return: if n is a power of two
    """

    def isPowerOfTwo(self, n):
        while n > 1:
            n = n / 2
        if n == 1:
            return True
        else:
            return False

class Solution:
    """
    @param n: an integer
    @return: if n is a power of two
    """
    def isPowerOfTwo(self, n):
        # Write your code here
        while n>1:
            n=n/2
        if n ==1:
            return True
        else:
            return False