having a hard time converting to neat columns and rows. Can anyone help?
I have been trying to set columns and rows to 0 and work from there but I cant figure it out. I just dont know where to insert the information.
n = 5
rate = 0.05
for n in range(0, 3):
principal = 10000
for n in range (0,6):
principal <= 15000
simple = principal * (1 + rate * n)
compound = principal * (1 + rate)**n
ratea = rate * 100
ratea = int(ratea)
principal = int(principal)
print((ratea),"% $",principal," $","{:.2f}".format(simple)," $","{:.2f}".format(compound))
principal = principal + 1000
rate = rate + 0.05
Use the
string
methodformat
.