+ 1

What is "self" in python?

Now I am on my Class module in Intermediate Python I am struggling to understand what "self" is in the __init__ function and how I can use it.

26th Aug 2021, 2:26 PM
Pilas
Pilas - avatar
2 Respostas
+ 1
Delicate Cat, Can you elaborate further? The answer you have given really helped but I'm still struggling. What does it mean to be the reference to the present instance of the class? Also, what is an instance of the class?
26th Aug 2021, 2:38 PM
Pilas
Pilas - avatar