Skip to content

πŸ“[Docs]: Add Methods in Python Chapter to Python DocumentationΒ #853

@codewithdhruba01

Description

@codewithdhruba01

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, and static 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

Type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions