Skip to main content

One doc tagged with "as"

View all tags

The `import` Statement: Bringing Code into Your Namespace

In our last article, we learned how to organize code into separate files called [modules]. Now, we need to master the tool that makes modules useful: the import statement. This statement is the gateway to accessing code from other files and from Python's vast standard library, allowing you to build powerful applications without reinventing the wheel.