On problem set #1 part 3, are there rules about when to use the round function? My code is a little different from the answer code. My answers for monthly payment match the answers, but my balance is a couple of cents off. Very annoying. Also, can anyone explain why this line of code is in the answer?
# Round monthly payment up to the nearest cent
monthly_payment = round(monthly_payment + 0.004999, 2)
I don't know why they have to recalculate the balance after they do this.
Any help would be appreciated. Thanks.

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

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