diff --git a/roadmaps/python/content/comments@__ndo1gcuUUtzmBnMIAbR.md b/roadmaps/python/content/comments@__ndo1gcuUUtzmBnMIAbR.md index d2c8c9a11..fc684cbe7 100644 --- a/roadmaps/python/content/comments@__ndo1gcuUUtzmBnMIAbR.md +++ b/roadmaps/python/content/comments@__ndo1gcuUUtzmBnMIAbR.md @@ -1,6 +1,6 @@ # Docstrings and Comments -Docstrings and comments document what code does and why. A docstring is a string literal placed right after a function, class, or module definition, and it becomes accessible through the object's __doc__ attribute, which tools use to generate documentation automatically. Comments, marked with #, explain specific lines or blocks of code and are ignored by the interpreter. Docstrings typically describe the purpose, parameters, and return value of a function, while comments clarify tricky logic or note reasons behind a particular implementation choice. +Docstrings and comments document what code does and why. A docstring is a string literal placed right after a function, class, or module definition, and it becomes accessible through the object's **doc** attribute, which tools use to generate documentation automatically. Comments, marked with #, explain specific lines or blocks of code and are ignored by the interpreter. Docstrings typically describe the purpose, parameters, and return value of a function, while comments clarify tricky logic or note reasons behind a particular implementation choice. Visit the following resources to learn more: diff --git a/roadmaps/python/content/functions-builtin-functions@-DJgS6l2qngfwurExlmmT.md b/roadmaps/python/content/functions-builtin-functions@-DJgS6l2qngfwurExlmmT.md index 10d5e16d0..95805e2f6 100644 --- a/roadmaps/python/content/functions-builtin-functions@-DJgS6l2qngfwurExlmmT.md +++ b/roadmaps/python/content/functions-builtin-functions@-DJgS6l2qngfwurExlmmT.md @@ -6,4 +6,5 @@ Visit the following resources to learn more: - [@official@Built-in Functions in Python](https://docs.python.org/3/library/functions.html) - [@article@Defining Python Functions](https://realpython.com/defining-your-own-python-function/) -- [@article@How to Return Multiple Values in Python (and When to Use Each Method)](https://roadmap.sh/python/return-multiple-values) \ No newline at end of file +- [@article@How to Return Multiple Values in Python (and When to Use Each Method)](https://roadmap.sh/python/return-multiple-values) +- [@article@Master Python Filter: Syntax, Examples, and Best Practices](https://roadmap.sh/python/filter) \ No newline at end of file