๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Python Beginner

What is Module?

A Python file containing definitions and statements that can be imported and reused in other Python programs.

A module is simply a .py file. It can define functions, classes, and variables. Modules promote code reuse and organization. Import with import module_name or from module import function.

Python comes with a rich standard library of modules (os, sys, json, datetime, etc.). Third-party modules are installed via pip. Packages are directories of modules with an __init__.py file.

Related Terms

Scikit-learn
The most popular Python machine learning library providing simple and efficient tools for data analysis and modeling.
Pip Requirements File
A text file listing Python package dependencies with version specifications for reproducible project installations.
Enum
A built-in class for creating enumerated constants - named groups of related values that improve code readability.
GIL (Global Interpreter Lock)
A mutex in CPython that allows only one thread to execute Python bytecode at a time, limiting true parallelism.
Requests Library
An elegant HTTP library for Python that simplifies making web requests with a human-friendly API.
List Comprehension
A concise syntax for creating new lists by applying an expression to each item in an existing iterable.
View All Python Terms โ†’