importEasy Playground

Loads a module or package into the current namespace

Python Playground
Output
Click "Run" to execute your code

import loads a module and makes it available by name. Access its contents with dot notation: module.function().

Challenge

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