pretty close with this one but keep getting invalid syntax error and highlights my '=' after my while, #project 1 problem set 2 'paying off debt in a year' annual_interest_rate = 0.18 balance = 1200 monthly_payment = 10 number_of_months = 0 monthly_payment_rate = annual_interest_rate/ 12 while updated_balance = balance * ( 1 + monthly_payment_rate) - monthly_payment : if updated_balance > 0: number_of_months += 1 if number_of_months = 12: monthly_payment += 10 else updated_balance <= 0: print number_of_months print updated_balance
i believe the reason you are having the error is because you cannot just use the = operator you are supposed to use == to specify equals in an if or while statement
did that fix your issue?
nice thank you that fixed that problem, still not working yet but closer than I was
nice thank you that fixed that problem, still not working yet but closer than I was
alright cool glad i was able to help
Join our real-time social learning platform and learn together with your friends!