In python what is self and method? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In python what is self and method?

I saw these words used in python lessons and self in some code but I don't understand what are these

2nd Oct 2019, 7:15 PM
Tim
1 Answer
+ 1
self is an argument, that will often be automatically passed, when calling an object method and self will refer to the object self. Method: https://www.sololearn.com/discuss/2021812/?ref=app
2nd Oct 2019, 7:24 PM
Seb TheS
Seb TheS - avatar