Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Why am I getting a syntax error at the TotalPayment line? python?

Update:

LoanAmount = eval(input("Enter loan amount: "))

Years = eval(input("Enter the number of years: "))

Months = Years * 12

InterestRate= 5

for InterestRate in range(5, 9):

MonthlyPayment = ((rate) * (LoanAmount)) / ((1 - ((1 + rate/100) ** Months))

TotalPayment = MonthlyPayment * Months

InterestRate = InterestRate + (1/8)

print(MonthlyPayment)

print(TotalPayment)

1 Answer

Relevance
  • 4 years ago

    More information about the specific error message might give a clue, since we have no idea how your python script is coded. I am guessing that you have a syntax error.

Still have questions? Get your answers by asking now.