One of the 50 questions in this topic
How much do you know about Python?A module is a file that contains reusable Python code (variables, functions, classes). It is imported with import to use its contents in other scripts. The Python standard library includes numerous modules such as math, os, sys or datetime. Modules allow you to organize related code, avoid name conflicts, and facilitate reuse, following Python's 'batteries included' principle.