Chapter 2. Writing Your First Modular Program

In this chapter, we will use modular programming techniques to implement a non-trivial program. Along the way, we will:

  • Learn about the divide and conquer approach to program design
  • Examine the tasks our program needs to perform
  • Look at the information our program will need to store
  • Apply modular techniques to break our program down into individual parts
  • Figure out how each part can be implemented as a separate Python module
  • See how the various modules work together to implement our program's functionality
  • Follow this process to implement a simple but complete inventory control system
  • See how modular techniques allow you to add functionality to your program while minimizing the changes that need to be made ...

Get Modular Programming with Python 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.