culTest

    One of the 50 questions in this topic

    How much do you know about Python?

    What is a module in Python?

    Answers

    A file containing reusable Python codeCorrect
    A special function that does not return values
    A type of variable that can contain multiple values
    A flow control structure

    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.