ten small Python programs
Steve Howell
showell30 at yahoo.com
Sun May 27 02:51:29 EDT 2007
--- Steven D'Aprano wrote:
> On Sat, 26 May 2007 18:48:45 -0700, Steve Howell
> wrote:
>
> > It also has a ComplexNumber class, but I don't
> want to
> > scare away mathphobes.
>
>
> Is it as short as this one-liner?
>
> ComplexNumber = complex
>
Along the idea of not reinventing a class from the
standard library in the list of ten small Python
programs (which has since grown), I went with the
classic BankAccount example for the first program to
introduce the "class" statement.
You can see the code here:
http://wiki.python.org/moin/SimplePrograms
____________________________________________________________________________________Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
More information about the Python-list
mailing list