| 2. | Importing attributes import mymodule mymodule.foo() from mymodule import foo foo() If you use the import statement, the module name is brought into the local namespace, and foo() is only accessible from the module's namespace. If you use the from-import statement, "foo()" itself is brought into the local namespace. In this case, you do not need to use the module's namespace to access it. | |