Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 9 Online
OpenStudy (anonymous):

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)

OpenStudy (microbot):

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

OpenStudy (anonymous):

To put another loop round

OpenStudy (anonymous):

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

OpenStudy (microbot):

im happy we found it! gl with submition!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!