human
Program to find the rate percentage from compound interest of consecutive years | Function to return the required rate percentage.
Driver code"
Solution in Python:
 ... Write me a code to program to find the rate percentage from compound interest of consecutive years and the other steps required?
assistant
#Here is code to program to find the rate percentage from compound interest of consecutive years and the other steps required.
 def Rate ( N1 , N2 ) :
	rate = ( N2 - N1 ) * 100 // ( N1 ) ;
	return rate
if __name__ == " _ _ main _ _ " :
	N1 = 100
	N2 = 120
	print ( Rate ( N1 , N2 ) , " ▁ % " )