About 17,300,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 …

  2. Importing user defined modules in python from a directory

    May 30, 2016 · I'm trying to import a module I wrote in python that just prints out a list containing numbers. The issue I'm having is that I want to be able to import it from a separate directory …

  3. Python Modules - W3Schools

    There are several built-in modules in Python, which you can import whenever you like. Import and use the platform module: There is a built-in function to list all the function names (or variable …

  4. Python Modules (With Examples) - Programiz

    In this tutorial, you will learn to create and import custom modules in Python. Also, you will find different techniques to import and use custom and built-in modules in Python.

  5. Python Modules: Creating, Importing, and Sharing - Stack Abuse

    Nov 28, 2017 · user-defined modules: Python files which are imported in to the top-level file, or among each other, and provide separate functionalities. These files are usually not launched …

  6. 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) …

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

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

    There are actually three different ways to define a module in Python: A module can be written in Python itself. A module can be written in C and loaded dynamically at run-time, like the re …

  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 and Importing Modules in Python - STechies

    Oct 2, 2021 · Creating a user-defined module in Python is very easy. You have to write a Python program, perform some functions and save the file with the .py extension. You can use that …

Refresh