-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
enhancementNew feature or requestNew feature or requestlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Description
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:
- Introduction to Functions
- Defining and Calling Functions (
defkeyword) - Function Parameters (positional, keyword, default, *args, **kwargs)
- Return Statement (single and multiple return values)
- Scope of Variables (local, global, nonlocal)
- Lambda Functions (with examples using
map(),filter(),reduce()) - Difference between Built-in Functions and User-defined Functions
- 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:
documentationhacktoberfest
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
Labels
enhancementNew feature or requestNew feature or requestlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard