Skip to Content
Learning Python, 2nd Edition
book

Learning Python, 2nd Edition

by Mark Lutz, David Ascher
December 2003
Beginner
620 pages
17h 3m
English
O'Reilly Media, Inc.
Content preview from Learning Python, 2nd Edition

Part IV. Functions

In Part IV, we study the Python function—a package of code that can be called repeatedly, with different inputs and outputs each time. We’ve already been calling functions earlier in the book: open, to make a file object, for instance. Here, the emphasis will be on coding user-defined functions, which compute values, perform part of a program’s overall logic, or otherwise wrap code for easy reuse.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Python, 5th Edition

Learning Python, 5th Edition

Mark Lutz

Publisher Resources

ISBN: 0596002815Supplemental ContentErrata Page