---
title: "Discussion on \"The Python Secret No One Tells You: Unmasking the Magic of 'self'\" | Hashnode"
description: "Discussion on \"The Python Secret No One Tells You: Unmasking the Magic of 'self'\". Is self a keyword? The answer is no!! Then what is this?\nWell before answering this question I would like to share where we use self. Lets see a code snippet :\nclass Student:\n    def __init__(self, student_id, name):\n        self.student_id = student..."
url: "https://hashnode.com/posts/the-python-secret-no-one-tells-you-unmasking-the-magic-of-self/693c97542b9c79d1c10a3bb4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Python Secret No One Tells You: Unmasking the Magic of 'self'](https://devabhinav.hashnode.dev/the-python-secret-no-one-tells-you-unmasking-the-magic-of-self?utm_source=hashnode&utm_medium=feed)

Is self a keyword? The answer is no!! Then what is this? Well before answering this question I would like to share where we use self. Lets see a code snippet : class Student: def \_\_init\_\_(self, student\_id, name): self.student\_id = student...

Dec 12, 2025 · 3 min read · devabhinav.hashnode.dev  
Updated Dec 14, 2025  
Read the article

-   [#self-in-python](https://hashnode.com/tag/self-in-python)
-   [#behind-the-scenes-of-python](https://hashnode.com/tag/behind-the-scenes-of-python)
-   [#logic-behind-self](https://hashnode.com/tag/logic-behind-self)
-   [#python](https://hashnode.com/tag/python)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#python-advanced](https://hashnode.com/tag/python-advanced)
-   [#devabhinav](https://hashnode.com/tag/devabhinav)

## Written by

[Aditya Abhinav](https://hashnode.com/@devabhinav)

@devabhinav

  
[View profile](https://hashnode.com/@devabhinav)

Be consistent. Everything is possible :)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
