0

Getting syntax error in my code even syntax is correct, help me please

unpaid_balance=0.0 paid_balance=0.0 annual_intrest_rate=18 minimum_monthly_payment_rate=2 remaining_balance=input for month in range (1,13): print_balance=0.0 paid_balance=(remaining_balance)*0.04 unpaid_balance=(remaining_balance)-(paid_balance) remaining_balance=(unpaid_balance+((unpaid_balance)*((0.2)/12)) print_balance=round(remaining_balance,2) print("Month "+str(month)+" Remaining balance: "+str(print_balance) print("Remaining balance: "+str(remaning_balance))

16th Dec 2017, 10:28 AM
vivek kustwar
vivek kustwar - avatar
2 Antworten
0
You're missing a final ) in your second to last print call. Other than that, you're missing the call for the input (it should be remaining_balance = input()) and you should convert that value into an integer or a float if you want to make math with it. Also, not sure what you're looking for in you for month... loop. You are assigning the same value to print_balance 13 times, and then to assign a different one.
16th Dec 2017, 10:06 PM
Vi Melody
Vi Melody - avatar
0
actually bro this is code for maintaining bank account detaile in last of year we have to print remaining balance rounded to 2 fig
16th Dec 2017, 10:13 PM
vivek kustwar
vivek kustwar - avatar