public
anonymous / gist:6116595
Created

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

  • Download Gist
gistfile1.txt
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.