<p>贷款计算器</p>
<pre><code>M = 0
L = raw_input("What is the loan amount you took? ")
i = raw_input("What is the interest for the loan amount? ")
k = raw_input("No of payments or years you are considering for this loan? ")
M = L[i(1+i)k] / [(1+i)k-1]
print("Your monthly payment is %f" %M)
</code></pre>
<p>错误:</p>
<pre><code>M = L[i(1+i)k] / [(1+i)k-1]
^
SyntaxError: invalid syntax
</code></pre>