### How to calculate the annual rate in python 3

Here’s the code: P = int(input(“Enter starting principle please.\n”)) n = int(input(“Enter Compound interest rate.(daily, monthly, quarterly,half-year, yearly)\n”)) r = float(input(“Enter annual interest amount. (decimal)\n”)) t = int(input(“Enter the amount of years.\n”)) t = 1 while t-1 <= 5-1 : final = P * (((1 + (r/n)) ** (n*t))) t += 1 print (“The final…

Details