Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing
minimallinux
Group Title
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)
 one year ago
 one year ago
minimallinux Group Title
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)
 one year ago
 one year ago

This Question is Closed

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

minimallinux Group TitleBest ResponseYou've already chosen the best response.0
To put another loop round
 one year ago

minimallinux Group TitleBest ResponseYou've already chosen the best response.0
But its not there yet, that's why the error !
 one year ago

MicroBot Group TitleBest ResponseYou've already chosen the best response.0
im happy we found it! gl with submition!
 one year ago
See more questions >>>
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.