As applications grow larger, it becomes increasingly important to modularize code by breaking it up into smaller functions of manageable size. You now have the tools you need to do this.
In this course, you’ve learned:
- How to create a user-defined function in Python
- Several different ways you can pass arguments to a function
- How you can return data from a function to its caller
- How to add documentation to functions with docstrings and annotations
For more information about topics covered in this lesson, you can check out these resources:
- The Python return Statement: Usage and Best Practices | Real Python Article
- Pass by Reference in Python: Background and Best Practices | Real Python Article
- Python args and kwargs: Demystified | Real Python Article
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.