About 182,000,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 …

  2. Creating Python Modules and Packages Guide - PyTutorial

    May 10, 2025 · Python modules and packages help organize code. They make it reusable. This guide shows how to create them properly.

  3. Python Modules - GeeksforGeeks

    Jan 10, 2026 · A Module in python is a file containing definitions and statements. A module can define functions, classes and variables. Modules help organize code into separate files so that programs …

  4. Python Modules: Bundle Code And Import It From Other Files

    Sep 5, 2025 · Python modules allow you to organize and reuse code. Learn how to create modules, and how to use modules with the Python import statement.

  5. Logging HOWTO — Python 3.14.3 documentation

    The actual output can be formatted quite flexibly if you need that; formatting options will also be explained later. Notice that in this example, we use functions directly on the logging module, like …

  6. python - What is __init__.py for? - Stack Overflow

    The __init__.py file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported. But just click the link, it contains …

  7. 6. Modules — Python 3.14.3 documentation

    1 day ago · Such a file is called a module; definitions from a module can be imported into other modules or into the main module (the collection of variables that you have access to in a script executed at …

  8. How to Manage Python Projects With pyproject.toml

    Learn how to manage Python projects with the pyproject.toml configuration file. In this tutorial, you'll explore key use cases of the pyproject.toml file, including configuring your build, installing your …

  9. OS Module in Python with Examples - GeeksforGeeks

    Mar 13, 2026 · OS module in Python provides functions for interacting with the operating system. OS comes under Python's standard utility modules. This module provides a portable way of using …

  10. How to Create and Use Custom Python Module - TecAdmin

    Apr 26, 2025 · A module in Python is simply a file containing Python definitions and statements. The file name is the module name followed by the .py extension. For instance, a module named mymodule …