human
Check if a number is divisible by 47 or not | Function to check if the number is divisible by 47 or not.
While there are at least two digits.
Extracting the last.
Truncating the number.
Subtracting fourteen times the last digit to the remaining number.
Finally return if the two - digit number is divisible by 43 or not.
Driver Code"
How can the above be solved in Python?

=====
Can you provide a code to check if a number is divisible by 47 or not and the other steps required?
assistant
#Here is code to check if a number is divisible by 47 or not and the other steps required.
 def isDivisible ( n ) :
	while n // 100 :
		d = n % 10
		n //= 10
		n = abs ( n - ( d * 14 ) )
	return ( n % 47 == 0 )
if __name__ == " _ _ main _ _ " :
	n = 59173
	if ( isDivisible ( n ) ) :
		print ( " Yes " )
	else :
		print ( " No " )