About 21,800 results
Open links in new tab
  1. 6. ModulesPython 3.14.5 documentation

    1 day ago · 6. Modules ¶ If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to write a somewhat longer …

  2. Python Modules - W3Schools

    Built-in Modules There are several built-in modules in Python, which you can import whenever you like.

  3. Python Modules - GeeksforGeeks

    Apr 6, 2026 · This is all that is required to create a module. Import module Modules can be used in another file using the import statement. When Python sees an import, it loads the module if it exists …

  4. PyPI · The Python Package Index

    The Python Package Index (PyPI) is a repository of software for the Python programming language. PyPI helps you find and install software developed and shared by the Python community.

  5. Python Modules and Imports: How to Organise and Reuse Code

    May 21, 2026 · Home / Articles / Python Modules and Imports: How to Organise and Reuse Code Python Modules and Imports: How to Organise and Reuse Code Modules let you split Python code …

  6. Python Modules and Packages – An Introduction – Real Python

    This article explores Python modules and Python packages, two mechanisms that facilitate modular programming. Modular programming refers to the process of breaking a large, unwieldy …

  7. Python Modules

    A Python module is a file that contains Python code. For example, when building a shopping cart application, you can have one module for calculating prices and another module for managing items …

  8. Python Modules (With Examples) - Programiz

    Import modules in Python We can import the definitions inside a module to another module or the interactive interpreter in Python. We use the import keyword to do this. To import our previously …

  9. Modules and Packages - Learn Python - Free Interactive Python

    Writing modules Modules in Python are just Python files with a .py extension. The name of the module is the same as the file name. A Python module can have a set of functions, classes, or variables …

  10. Python Modules – Types and Examples - Python Geeks

    Learn what is module in Python, types of Python Modules - Built-in &User defined, Examples of various Modules in Python, packages in Python.