Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

minimallinux

  • 3 years ago

Anyone know why I get indentation error on this ? balance = 3329 annualInterestRate = 0.2 monthlyPaymentRate = 0.04 monthlyInterestRate = annualInterestRate/12 mmp = 310 paid = 0 m = 1 while(m <= 1): balance = balance m += 1 balance = (balance - mmp)*(1 + monthlyInterestRate) paid = mmp + paid print 'Total paid: ',round(paid,2) print 'Remaining balance: ',round(balance,2)

  • This Question is Closed
  1. MicroBot
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Why are you indenting while loop? Bring it on the same level as balance and others.I think there is your problem.

  2. minimallinux
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    To put another loop round

  3. minimallinux
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    But its not there yet, that's why the error !

  4. MicroBot
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    im happy we found it! gl with submition!

  5. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy