human
Count minimum moves required to convert A to B | Function to find minimum number of moves to obtained B from A.
Stores the minimum number of moves.
Absolute difference.
K is in range [ 0 , 10 ].
Print the required moves.
Driver Code"
How can the above be solved in Python?

Write me a code to count minimum moves required to convert A to B and the other steps required?
assistant
#Here is code to count minimum moves required to convert A to B and the other steps required.
 def convertBfromA ( a , b ) :
	moves = 0
	x = abs ( a - b )
	for i in range ( 10 , 0 , - 1 ) :
		moves += x // i
		x = x % i
	print ( moves , end = " ▁ " )
A = 188
B = 4
convertBfromA ( A , B )