Skip to content

📝[Docs]: Add Functions in Python Chapter #651

@codewithdhruba01

Description

@codewithdhruba01

Is there an existing issue for this?

  • I have searched the existing issues

Issue Description

A new chapter on Functions in Python is missing from the current documentation. Functions are one of the most important building blocks of Python programming, and adding this chapter will help beginners understand how to structure and reuse code effectively.

Suggested Change

Add a new documentation page titled “Functions in Python” under the Python section.
The chapter should include:

  1. Introduction to Functions
  2. Defining and Calling Functions (def keyword)
  3. Function Parameters (positional, keyword, default, *args, **kwargs)
  4. Return Statement (single and multiple return values)
  5. Scope of Variables (local, global, nonlocal)
  6. Lambda Functions (with examples using map(), filter(), reduce())
  7. Difference between Built-in Functions and User-defined Functions
  8. Practical examples and exercises

Rationale

Functions are a core concept in Python. Without covering them, learners will face difficulties in writing reusable and modular code. Adding this chapter will:

  • Improve the completeness of the Python documentation.
  • Help beginners move from basic syntax to real-world programming.
  • Make the documentation more beginner-friendly and valuable for contributors.

This issue can be labeled as:

  • documentation
  • hacktoberfest

Urgency

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