title: columns and rows in python
body: <p>How would I add columns and rows to this program? I am trying to tidy it up. </p>
  
  <pre><code>n = 5
  
  rate = 0.05
  
  for n in range(0, 3):
  
      principal = 10000
  
      for n in range (0,6):
  
          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
  </code></pre>