Advanced
Python
Q94 / 101
What is the difference between __import__ and importlib?
Correct! Well done.
Incorrect.
The correct answer is B) __import__ is the low-level built-in; importlib provides a high-level, documented API for import machinery including custom importers and loaders
B
Correct Answer
__import__ is the low-level built-in; importlib provides a high-level, documented API for import machinery including custom importers and loaders
Explanation
importlib.import_module() is the recommended way to import by string name. importlib.util allows creating custom finders, loaders, and module specs.
Progress
94/101