fromExpert Playground

Used with import to bring in specific names from a module

Python Playground
Output
Click "Run" to execute your code

'from X import Y' compiles to IMPORT_NAME (load module) + IMPORT_FROM (extract attribute) + STORE_NAME. The module itself is not stored — only the imported name is bound.

Challenge

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