Skip to content

💡[Feature]: Add Add Intermediate Python Topics #647

@Vijayaa21

Description

@Vijayaa21

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlevel 110 pointsrecodethis is label for leaderboard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions