human
Print digits for each array element that does not divide any digit of that element | Function to find digits for each array element that doesn 't divide any digit of the that element.
Traverse the array arr [ ].
Iterate over the range [ 2 , 9 ].
Stores if there exists any digit in arr [ i ] which is divisible by j.
If any digit of the number is divisible by j.
If the digit j doesn 't  divide any digit of arr[i].
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to print digits for each array element that does not divide any digit of that element and the other steps required.
 def indivisibleDigits ( arr , N ) :
	for i in range ( N ) :
		num = 0
		print ( arr [ i ] , end = ' ▁ ' )
		for j in range ( 2 , 10 ) :
			temp = arr [ i ]
			flag = True
			while ( temp > 0 ) :
				if ( ( temp % 10 ) != 0 and ( temp % 10 ) % j == 0 ) :
					flag = False
					break
				temp //= 10
			if ( flag ) :
				print ( j , end = ' ▁ ' )
		print ( )
arr = [ 4162 , 1152 , 99842 ]
N = len ( arr )
indivisibleDigits ( arr , N )