importAdvanced Playground

Loads a module or package into the current namespace

Python Playground
Output
Click "Run" to execute your code

importlib lets you import modules by string name, which is useful for plugin systems and optional dependencies.

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?