About 16,500,000 results
Open links in new tab
  1. Python Modules - GeeksforGeeks

    Aug 9, 2024 · A Python module is a file containing Python definitions and statements. A module can define functions, classes, and variables. A module can also include runnable code. …

  2. 6. ModulesPython 3.13.3 documentation

    2 days ago · A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) …

  3. Python Modules - W3Schools

    What is a Module? 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 …

  4. 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 …

  5. Python Modules - Types and Examples - Python Geeks

    A module is a file with the extension .py and contains executable Python or C code. A module contains several Python statements and expressions. We can use pre-defined variables, …

  6. Python Modules - Online Tutorials Library

    Any text file with .py extension and containing Python code is basically a module. It can contain definitions of one or more functions, variables, constants as well as classes. Any Python object …

  7. What is a Python Module - Python Tutorial

    Summary: in this tutorial, you’ll learn about what a python module is and understand how it works. What is a python module # So far, you learned that a module in Python is a file that contains …

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

    Apr 7, 2023 · Python modules allow you to organize and reuse code. Learn how to create modules, and how to use modules with the Python import statement.

  9. Python Modules Tutorial: Importing, Writing, and Using Them

    Mar 28, 2025 · Simply put, a module is a file consisting of Python code. It can define functions, classes, and variables and can also include runnable code. Any Python file can be referenced …

  10. Creating Python Modules and Packages Guide - PyTutorial

    May 10, 2025 · Creating a Basic Module. To create a module, save your code in a .py file. The filename becomes the module name. Follow these steps: 1. Create a new Python file. 2. Add …

Refresh