human
Count numbers in range L | check if the number is divisible by the digits ..
function to calculate the number of numbers.
Driver function"
How can the above be solved in Python?

=====
Write me a code to count numbers in range L and the other steps required?
assistant
#Here is code to count numbers in range L and the other steps required.
 def check ( n ) :
	m = n
	while ( n != 0 ) :
		r = n % 10
		if ( r > 0 ) :
			if ( ( m % r ) != 0 ) :
				return False
		n = n // 10
	return True
def count ( l , r ) :
	ans = 0
	for i in range ( l , r + 1 ) :
		if ( check ( i ) ) :
			ans = ans + 1
	return ans
l = 10
r = 20
print ( count ( l , r ) )