can someone please show me how to convert this pseudocode to python using nested loops
- by angel
N=5
For(rate=0.05, rate <= 0.15, rate = rate +0.05)
For(principle=1000, principle <= 1500, principle=principle + 1000)
simple = principle * (1 + rate * N) #Where N is the number of years
compound = principle * (1 + rate) ^ N
print simple + " " + compound
End For
End For