human
Find the number after successive division | Function to find the number.
Driver Code"
How can the above be solved in Python?

Can you provide a code to find the number after successive division and the other steps required?
assistant
#Here is code to find the number after successive division and the other steps required.
 def findNum ( div , rem , N ) :
	num = rem [ N - 1 ]
	i = N - 2
	while ( i >= 0 ) :
		num = num * div [ i ] + rem [ i ]
		i -= 1
	return num
if __name__ == ' _ _ main _ _ ' :
	div = [ 8 , 3 ]
	rem = [ 2 , 2 ]
	N = len ( div )
	print ( findNum ( div , rem , N ) )