About 33,400,000 results
Open links in new tab
  1. Create and Import modules in Python - GeeksforGeeks

    Dec 29, 2019 · In Python, a module is a self-contained Python file that contains Python statements and definitions, like a file named GFG.py, can be considered as a module named GFG which can be imported with the help of import statement. However, one might get confused about the difference between modules and packages.

  2. Structuring Your Project — The Hitchhiker's Guide to Python

    In this section, we take a closer look at Python’s modules and import systems as they are the central elements to enforcing structure in your project. We then discuss various perspectives on how to build code which can be extended and tested reliably. Just as Code Style, API Design, and Automation are essential for a healthy development cycle.

  3. Introduction to Modular Programming: Breaking Code into …

    Modular programming is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules. Each module contains everything necessary to execute only one aspect of the desired functionality.

  4. Best Practices for Modular Code Design - blog.pixelfreestudio.com

    Modular code design is all about breaking down your software into smaller, manageable pieces or modules. Each module handles a specific part of your program, making it easier to develop, test, and maintain. Imagine building a house with Lego blocks; each block represents a module, and together, they form a strong and beautiful structure.

  5. How to design modular Python projects | LabEx

    Learn essential techniques for creating scalable, maintainable Python project architectures with modular design principles and best practices for professional software development.

  6. 30. Modular Programming and Modules | Python Tutorial - Python

    Nov 8, 2023 · Modular programming is a software design technique to split your code into separate parts. These parts are called modules. The focus for this separation should be to have modules with no or just few dependencies upon other modules. In other words: Minimization of dependencies is the goal.

  7. Modular Approach in Programming - GeeksforGeeks

    Sep 7, 2018 · Modular programming is the process of subdividing a computer program into separate sub-programs. A module is a separate software component. It can often be used in a variety of applications and functions with other components of the system.

  8. Python Modules (With Examples) - Programiz

    Instead of putting everything in a single file, we can use modules to separate codes in separate files as per their functionality. This makes our code organized and easier to maintain. Module is a file that contains code to perform a specific task. A module may contain variables, functions, classes etc. Let's see an example, Let us create a module.

  9. Detailed Guide for Modular Programming Concept

    If you are looking for a technique to design a readable software program, modular programming is the most preferred technique. Technology nowadays is more focused on making complicated things simpler.

  10. Python Modules - W3Schools

    Consider a module to be the same as a code library. A file containing a set of functions you want to include in your application. To create a module just save the code you want in a file with the file extension .py: Save this code in a file named mymodule.py. Now we can use the module we just created, by using the import statement:

Refresh