human
Find whether a given number is a power of 4 or not | Python3 program to check if given number is power of 4 or not.
Driver code"
How can the above be solved in Python?

Give me a code to find whether a given number is a power of 4 or not and the other steps required?
assistant
#Here is code to find whether a given number is a power of 4 or not and the other steps required.
 def isPowerOfFour ( n ) :
	return ( n != 0 and ( ( n & ( n - 1 ) ) == 0 ) and not ( n & 0xAAAAAAAA ) ) ;
test_no = 64 ;
if ( isPowerOfFour ( test_no ) ) :
	print ( test_no , " is ▁ a ▁ power ▁ of ▁ 4" ) ;
else :
	print ( test_no , " is ▁ not ▁ a ▁ power ▁ of ▁ 4" ) ;