[Tutor] Useing Functions
Alan Gauld
alan.gauld at blueyonder.co.uk
Fri Aug 20 21:24:02 CEST 2004
> Is it better to put everything in a def function, so that
> instead of having to rewrite it all out over and over
> you can just reuse the function?
Yes, if you can reuse it put it in a function, thats largely
what they are there for. Not only easier to use but easier to
fix too - only one place to change...
Then collect related functions in a file and you have a module
that you can reuse across projects too.
Alan G.
More information about the Tutor
mailing list