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

Why does my print have an invalid syntex?

OpenStudy (anonymous):

http://pastebin.com/fFtreEJZ

OpenStudy (andrew.m.higgs):

Change minpayment to minmonthlypayment in the print statement. :-) That should fix it.

OpenStudy (harsimran_hs4):

hey there are a few errors in the code 1) you will have a never ending program as nummonths += 1 in the 19th line of your code should have been in the while loop....otherwise the condition while nummonths <= 12: would be always true as nummonths = 1 2) change the minpayment to minmonthlypayment this is the corrected code http://pastebin.com/6ABXyGZG

OpenStudy (andrew.m.higgs):

Correct. Did not notice that one because when i pasted local i had to fix indents to get it towork. Well spotted.

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!