title: How do I call my Python function?
body: <p>Here is my assignment:</p>
  
  <blockquote>
    <p>Write a program to calculate the credit card balance after one year if
    a person only pays the minimum monthly payment required by the credit
    card company each month.</p>
    
    <p>The following variables contain values as described below:</p>
    
    <p>balance - the outstanding balance on the credit card</p>
    
    <p>annualInterestRate - annual interest rate as a decimal</p>
    
    <p>monthlyPaymentRate - minimum monthly payment rate as a decimal</p>
    
    <p>For each month, calculate statements on the monthly payment and
    remaining balance, and print to screen something of the format:</p>
    
    <p>Month: 1<br>
    Minimum monthly payment: 96.0<br>
    Remaining balance: 4784.0  </p>
    
    <p>Finally, print out the total amount paid that year and the remaining
    balance at the end of the year in the format:</p>
    
    <p>It should not specify the values for the variables balance,
    annualInterestRate, or monthlyPaymentRate - our test code will define
    those values before testing your submission.</p>
  </blockquote>
  
  <p>And here is the code I wrote:</p>
  
  <pre><code>def minpayment(balance, annualInterestRate, monthlyPaymentRate):
       totalPaid = 0
       month = 1
       while month &lt;= 12:
           minPayment = monthlyPaymentRate * balance 
           balance -=  minPayment 
           balance += (annualInterestRate/12.0)*balance
           print 'Month:',month 
           print 'Minimum monthly payment:',round(minPayment,2) 
           print 'Remaining balance:',round(balance,2) 
           totalPaid += minPayment 
           month += 1
       print 'Total paid:', round(totalPaid,2) 
       print 'Remaining balance:', round(balance,2)
  </code></pre>
  
  <p>Now, my question is, now that I've created the function, how do I call it?</p>