The Python Secret No One Tells You: Unmasking the Magic of 'self'
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, 20253 min read7