© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. WilsonThe Absolute Beginner's Guide to Python Programminghttps://doi.org/10.1007/978-1-4842-8716-3_7

7. Using Modules

Kevin Wilson1  
London, UK
When developing more complex Python applications, as the program grows in size, it's a good idea to split it up into several files for easier maintenance and reusability of the code. To do this, we use modules.

A diagram illustrates the modules of the main program code, which are computation functions, user interface functions, and network functions.

Figure 7-1

An example of how a large program can be broken down ...

Get The Absolute Beginner's Guide to Python Programming: A Step-by-Step Guide with Examples and Lab Exercises now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.