human
Find average of two numbers using bit operation | Function to return the average of x and y using bit operations.
Calculate the average Floor value of ( x + y ) / 2.
Driver code"
Solution in Python:
 ... Can you provide a code to find average of two numbers using bit operation and the other steps required?
assistant
#Here is code to find average of two numbers using bit operation and the other steps required.
 def getAverage ( x , y ) :
	avg = ( x & y ) + ( ( x ^ y ) >> 1 ) ;
	return avg
x = 10
y = 9
print ( getAverage ( x , y ) )