A community for students.
Here's the question you clicked on:
 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)
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

MicroBot
 3 years ago
Best ResponseYou've already chosen the best response.0Why are you indenting while loop? Bring it on the same level as balance and others.I think there is your problem.

minimallinux
 3 years ago
Best ResponseYou've already chosen the best response.0To put another loop round

minimallinux
 3 years ago
Best ResponseYou've already chosen the best response.0But its not there yet, that's why the error !

MicroBot
 3 years ago
Best ResponseYou've already chosen the best response.0im happy we found it! gl with submition!
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.