<filename>src/powerOfFour/four.py
from math import log

class Solution:
    def isPowerOfFour(self, num: int) -> bool:
        return num > 0 and int(log(num)/log(4)) == log(num)/log(4)

if __name__ == '__main__':
    num = int(input('Input: '))
    print(f"Output: {Solution().isPowerOfFour(num)}")


<filename>src/powerOfFour/four.py
from math import log

class Solution:
    def isPowerOfFour(self, num: int) -> bool:
        return num > 0 and int(log(num)/log(4)) == log(num)/log(4)

if __name__ == '__main__':
    num = int(input('Input: '))
    print(f"Output: {Solution().isPowerOfFour(num)}")

