[Tutor] Oops! I just corrected my file:RE Completed project is this correct?

Kent Johnson kent37 at tds.net
Sun Feb 8 16:25:24 CET 2009


I guess this is homework so I will keep my comments fairly general.

You have a lot of tests on count. Are they all needed?
The code might be clearer if tuition was a positive number.
newPrincipal and newTuition could have better names
I don't think you need so many variables, balance, newBalance and
principal all represent the same thing.

Kent

On Sat, Feb 7, 2009 at 11:02 PM,  <cclpianos at comcast.net> wrote:
> Forget the first, this is the corrected version.
>
> Thanks,
>
> Pat
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>


More information about the Tutor mailing list