-
Notifications
You must be signed in to change notification settings - Fork 139
Description
Is there an existing issue for this?
- I have searched the existing issues
Feature Description
Description
We want to expand our Python documentation by adding Intermediate Python Topics. These topics will help learners move beyond the basics and prepare for more advanced concepts.
✅ Topics to Add
Functions in Python (with default, keyword, variable-length arguments)
Lambda Functions
Modules and Packages
Exception Handling (try, except, finally, raise)
File Handling (read, write, append)
Python Comprehensions (list, dict, set, generator)
Iterators and Generators
Decorators
Python Scope (Global, Local, Nonlocal, LEGB rule)
Use Case
These intermediate Python concepts are widely used in real-world programming. Functions and lambda functions improve modularity and make code more concise, while modules and packages help structure larger projects for better maintainability. Exception handling ensures that programs run smoothly even when unexpected errors occur, and file handling allows interaction with external data such as logs, reports, and datasets.
Benefits
Python comprehensions simplify data transformations with shorter syntax, and iterators/generators enable memory-efficient handling of large datasets. Decorators provide a clean way to extend or modify functions (e.g., for authentication or logging), and understanding Python scope (local, global, nonlocal, and LEGB rule) prevents common bugs related to variable usage. Overall, these topics strengthen coding practices, increase efficiency, and prepare developers for real-world software development.
Add ScreenShots
No response
Priority
High
Record
- I have read the Contributing Guidelines
- Are you a GSSOC'25 contributor
- I want to work on this issue