#set variables p, r, n, t p = 5000 # original principal sum r = .15 # annual interest rate n = 1 # times per year to compound t = 10 # time in years #calculate p' using *, +, exp(), remember PEMDAS p_prime = p*(1+r/n)**(n*t) print(p_prime) #set variables p, r, n, t p = 5000 # original principal sum r = .15 # annual interest rate n = 4 # times per year to compound t = 10 # time in years #calculate p' using *, +, exp(), remember PEMDAS p_prime = p*(1+r/n)**(n*t) print(p_prime)