私は初心者の PYTHON プログラマーで、いくつかのコードを書いていますが、うまくいきません...エラーを見つけて修正するのを手伝ってくれませんか?
これまでの私のコードは次のとおりです。
balance=int(raw_input("Enter the outstanding balance on your credit card: "))
annualInterestRate=float(raw_input("Enter the annual credit card interest rate as a decimal: "))
monthlyPaymentRate=float(raw_input("Enter the monthly payment rate as a decimal"))
monthInterestRate = annualInterestRate / 12
monthlyPayment = monthlyPaymentRate*balance
newBalance= (balance-monthlyPayment) * (1 + monthInterestRate) #newBalance is updated balance
month=0
while month<12:
month += 1
monthlyPayment = (monthlyPaymentRate*balance)
newBalance=(balance-monthlyPayment)*(1 + monthInterestRate)
newBalance = balance
print("Month: " + str(month))
print("Minimum monthly payment: " + str(monthlyPayment))
print("Remaining balance: " + str(newBalance))