Let's take the values from the Time for action – determining the number of periodic payments tutorial and reverse compute the interest rate from the other parameters.
Fill in the numbers from the previous Time for action tutorial.
print "Interest rate", 12 * np.rate(167, -100, 9000, 0)
The interest rate is approximately 10 percent, as expected.
Interest rate 0.0999756420664