import — Intermediate Playground
Loads a module or package into the current namespace
Python Playground
Output
Click "Run" to execute your codeUse aliases for long module names. Conditional imports provide fallbacks. Function-scope imports delay loading until needed.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?