human
Max occurring divisor in an interval | function to find max occurring divisor interval [ x , y ].
if there is only one number in the in the interval , return that number.
otherwise , 2 is max occurring divisor.
Driver code"
How can the above be solved in Python?

Give me a code to max occurring divisor in an interval and the other steps required?
assistant
#Here is code to max occurring divisor in an interval and the other steps required.
 def findDivisor ( x , y ) :
	if ( x == y ) :
		return y
	return 2
x = 3
y = 16
print ( findDivisor ( x , y ) )