Python Foundations · Unit 5
Unit 5: Modules & Packages
Split code across files and use Python's standard library.
Lessons
- What Are Modules?What modules are, why modules matter, how modules work, module benefits
- Importing Built-in ModulesBasic import, selective import, module aliases, common modules
- Creating Your Own ModulesCreating modules, importing custom modules, module organization, best practices
- The __name__ == "__main__" PatternWhat __name__ is, the pattern, why it matters, practical use
- Working with PackagesWhat packages are, creating packages, importing from packages, package structure
- The Python Standard LibraryWhat the standard library is, exploring modules, reading documentation, popular modules
- Installing External Packages with pipWhat pip is, installing packages, managing packages, finding packages
- Virtual Environments and Dependency ManagementWhat virtual environments are, creating environments, activating environments
- Module Aliases and Selective ImportsUsing aliases, selective imports, import best practices, common patterns
- Project Organization Best PracticesDirectory structure, naming conventions, package structure, project templates
-
Take the Unit 5 test
End of unit test
Ten multiple choice questions worth 7 points each and one free response problem worth 30, so 100 in total. Score 70 or more to finish Unit 5 and unlock Unit 6.