Unit 5
Unit 5: Modules & Packages
Work through the lessons below in order. Each lesson includes short explanations and runnable code.
Lessons
- 1. What Are Modules?
- 2. Importing Built-in Modules
- 3. Creating Your Own Modules
- 4. The __name__ == "__main__" Pattern
- 5. Working with Packages
- 6. The Python Standard Library
- 7. Installing External Packages with pip
- 8. Virtual Environments and Dependency Management
- 9. Module Aliases and Selective Imports
- 10. Project Organization Best Practices