Write reusable code
Beginner
Developer
Student
Visual Studio Code
Learn how to write reusable code in Python using functions, parameters, return values, variable scope, and importable modules.
Learning objectives
After completing this module, you're able to:
- Create functions that accept parameters.
- Return values from functions.
- Understand how variable scope affects your code.
- Split code across importable modules.