Hello, Working on Problem Set 1. I look at the solution set and understand it from that point of view. However I'm getting a syntax error at mr1 that is causing my irk. #Outstanding balance on the credit card outstanding= float(raw_input ('Enter the outstanding balance on the credit card')) #interest rate on balance intrate = float(raw_input ('Enter you interest rate:')) #minimum monthly payment rate minimum_rate= float (raw_input ('Please enter the minimum monthly payment rate as a decimal') mr1 = float(minimum_rate) os1 = float(outstanding) minimum_monthly_payment = float (minimum_rate * outstanding) interest_monthly=intrate/12 interest_paid=interest_monthly*outstanding principal_paid=minimum_monthly_payment-interest_paid remaining_balance= outstanding-principal_paid
please use a code pasting site http://dpaste.com http://pastebin.com http://codepad.org .....
You indicate that the line amountPaid = float(amountPaid+minPay*balance) will cause an error but that line does not occur in the code you posted. I agree - please use a code pasting site to put up the whole code file, and please indicate by line number what line(s) are giving you troubles or confusions. If you are getting a specific error when you run the code in IDLE please post that too.
Although the error points to the mr1 line, the error actually occurs on the previous line--you are missing a closing parenthesis on the minimum_rate line.
Join our real-time social learning platform and learn together with your friends!