Learn Before
Concept icon
Concept

"Self" Keyword in Python Class

When creating objects, instance is passed as the first argument by default. Self represents that instance of the class. We access all the variables of a class by using self.

0

1

Concept icon
Updated 2021-02-03

Tags

Python Programming Language

Data Science