human
Woodall Number | Python program to check if a number is Woodball or not ..
If number is even , return false ..
If x is 1 , return true ..
While x is divisible by 2.
Divide x by 2.
Count the power.
If at any point power and x became equal , return true ..
Driven Program"
How can the above be solved in Python?

=====
Give me a code to woodall Number and the other steps required?
assistant
#Here is code to woodall Number and the other steps required.
 def isWoodall ( x ) :
	if ( x % 2 == 0 ) :
		return False
	if ( x == 1 ) :
		return True
	p = 0
	while ( x % 2 == 0 ) :
		x = x / 2
		p = p + 1
		if ( p == x ) :
			return True
	return False
x = 383
if ( isWoodall ( x ) ) :
	print " Yes "
else :
	print " No "