from — Easy 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' brings Y directly into your namespace. This avoids repeating the module name but can cause naming conflicts.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?