What is self in Python?

By ayush goel in 22 Sep 2023 | 04:04 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

What is self in Python?

22 Sep 2023 | 04:04 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

self is a convention used as the first parameter in instance methods of a class. It refers to the instance of the class and is used to access instance variables and methods.

22 Sep 2023 | 07:12 pm
0 Likes

Report

Please describe about the report short and clearly.