About 698,000 results
Open links in new tab
  1. 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.

  2. Create and Import modules in Python - GeeksforGeeks

    Dec 29, 2019 · In Python, modules allow us to organize code into reusable files, making it easy to import and use functions, classes, and variables from other scripts. Importing a module in …

  3. Python Modules - Types and Examples - Python Geeks

    User-defined modules are modules that we create. These are custom-made modules created specifically to cater to the needs of a certain project. Let us see how we create these user …

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

  5. 6. ModulesPython 3.13.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 …

  6. Importing user defined modules in python from a directory

    May 30, 2016 · For example, given I want to import printnumbers.py from a directory in my documents folder I am supposed to implement the following: import sys. …

  7. Modules in Python - Types and Examples - TechVidvan

    To name a few, Python contains modules like “os”, “sys”, “datetime”, “random”. You can import and use any of the built-in modules whenever you like in your program. (We’ll look at it …

  8. Python Modules: Features, Types, Variables, Examples

    User-defined Modules in Python. Users create these modules to make their code more organized, modular, and reusable. These are defined in a different .py file, so you must import and use …

  9. Python Modules - Sanfoundry

    Learn all about Python modules, including built-in, user-defined, and third-party modules. Discover how to create, import, and use them effectively with examples.

  10. Types of Modules in Python : Built-in & User-defined Python Modules

    Feb 20, 2023 · There are two main types of Python modules: built-in modules and user-defined modules. Built-in modules are modules that come preinstalled with Python, while user-defined …

  11. Some results have been removed
Refresh