Before using a module in Python, what must happen?



You have to license the module.


You have to import the module.


You have to compile the module.


You have to process the module.

1 answer

Before using a module in Python, you must import the module. This step makes the functionalities provided by the module available to your code. Using import, you can access classes, functions, and variables defined in the module.

So the correct answer is:

You have to import the module.