[Tutor] Creation of function

Guillaume RAIMONDEAU willblake@wanadoo.fr
Mon Jun 16 07:54:01 2003


Thanx I'm waiting the 2d edition of the book (so that i could read it in Am=
erican and not in french:)
As far as M.Gauld course i'm translating it so ...that's well:))
Thanx


> Message du 16/06/03 12:02
> De : Magnus Lyck=E5 <magnus@thinkware.se>
> A : debutant@linux-mandrake.com, tutor@python.org
> Copie =E0 :=20
> Objet : Re: [Tutor] Creation of function
> At 09:00 2003-06-16 +0200, Guillaume wrote:
> >Hi,
> >Is it possible to create whatever
> >functions I want (thanx to def)
>=20
> Yes.
>=20
> >or are there a limited library of functions?
>=20
> You can create whatever function you want as long as you only
> want reasonable things. :)
>=20
> There are a number of predefined functions; some that are
> always available (unless you hide them by giving something
> else their names), and more in standard or third party
> modules that you can access by using the import statement.
>=20
> Besides that, you can certainly create your own functions.
>=20
> It's usually better to use a predefined function if there is
> one that fits the bill, but as a Python programmer, you will
> often define new functions.
>=20
> I think most Python tutorials will show this, and I believe
> you have said that you were reading Lutz & Ascher's "Learning
> Python". Chapter 4 is all about functions.
>=20
> Lutz and Ascher assume some prior programming experience though.
> If this is all new to you, Alan Gauld's book and his web site
> might be a better choice.
>=20
>=20
> --
> Magnus Lycka (It's really Lyck=E5), magnus@thinkware.se
> Thinkware AB, Sweden, www.thinkware.se
> I code Python ~ The Agile Programming Language=20
>=20
>=20
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>