I think that here:

>         expense = float(raw_input('Enter the next expense or 0 to finish $'))

you want to use `expense +=` instead.  Instead of adding it to the
previous expenses, you're resetting the `expense` variable each time.

I think there's some other things that won't behave as expected, but
that seems what like you asked.


- @japherwocky
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to