---------- Forwarded message ---------- From: <cclpia...@comcast.net> Date: Sun, Feb 8, 2009 at 11:32 AM Subject: Re: [Tutor] Oops! I just corrected my file:RE Completed project is this correct? To: Kent Johnson <ken...@tds.net>
Oh one thing, I'm not a student at a university. But I am completing the assignments "as a student". The first project is from a downloaded MIT CompSci 101 course. If it takes me several weeks to do a project I don't mind. I'm actually 56 yrs old and run my own business. Eventually, I hope to write several programs to control external hardware. Thanks again, Pat On Feb 8, 2009, at 8:25 AM, Kent Johnson wrote: > 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, <cclpia...@comcast.net> wrote: >> >> Forget the first, this is the corrected version. >> >> Thanks, >> >> Pat >> _______________________________________________ >> Tutor maillist - Tutor@python.org >> http://mail.python.org/mailman/listinfo/tutor >> >> _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor