human
Greatest divisor which divides all natural number in range [ L , R ] | Function to return the greatest divisor that divides all the natural numbers in the range [ l , r ].
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to greatest divisor which divides all natural number in range [ L , R ] and the other steps required.
 def find_greatest_divisor ( l , r ) :
	if ( l == r ) :
		return l ;
	return 1 ;
l = 2 ;
r = 12 ;
print ( find_greatest_divisor ( l , r ) ) ;