-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
enhancementNew feature or requestNew feature or requesthacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Issue Description
What needs to be added?
A new standalone documentation chapter titled "Methods in Python" This chapter should explain:
Why is this important?
- While Python OOP covers some aspects of methods, a separate chapter focused only on methods will help beginners understand the different types clearly.
- Explaining
instance methods
,class methods
, andstatic methods
in one dedicated chapter will provide better clarity. - It improves the structure of the documentation by separating core concepts from OOP structure.
Suggested Change
- What is a method in Python
- Difference between methods and functions
- How to define and call methods
self
and instance methods- Class methods (
@classmethod
) - Static methods (
@staticmethod
) - Code examples for each type of method
Rationale
- Create a new markdown/documentation file, e.g.,
methods-in-python.md
, in the main Python section (not inside the OOP folder). - Add a link to this chapter in the sidebar navigation under the general Python topics (after Functions or Classes).
- Use consistent formatting and add real Python code examples.
- Clearly show the output of code examples where applicable.
Lebel:
hacktoberfast
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 requesthacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Type
Projects
Status
Todo