anonymous / gist:6116595
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Why am I getting a syntax error when I try to assign the variable 'remainder?'

View gist:6116595
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
outbal = float(raw_input('Enter the outstanding balance on your credit card:'))
Annualintrate = float(raw_input('Enter the annual credit card interest rate as a decimal:'))
x = 1.0
month = 1
while (remainder > 0.0):
while (month <= 12.0):
initialmonthlyballance = round(float(((annualintrate /12)*outbal)+outbal, 2)
remainder = round(float(initialmonthlyballance - (x*10)))
if (remainder >= 0):
month += 1
Outbal = reamainder
else:
print 'Monthly payment to pay off debt in 1 year:', x10
print 'number of months needed:', month
print 'Balance:' remainder
if (reamainder > 0):
x = x + 1
 
else:
print 'Monthly payment to pay off debt in 1 year:', x10
print 'number of months needed:', month
print 'Balance:' remainder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.