python interview questions and answers (part-2)
What is a module in Python?
A module in Python is a file containing Python definitions and statements. The file name is the module name with the suffix .py added. For example, if we have a file named mymodule.py, it can be imported using the import statement with the name mymodule. The module can contain functions, classes, and variables.