What is `self` in Python?

preview_player
Показать описание


▼ JOIN THE ACTION:

▼ ABOUT US:
AiCore collaborates with renowned industry brand names to provide step-by-step guides you can follow to get hands-on practice building and enhancing the same systems you might find yourself working on in the industry.

Data science and machine learning are about understanding how data can be used to make critical business decisions and automate processes. Given the vast amounts of data being collected in the digital age, companies across all fields want to utilise their data to inform their decisions and improve operational efficiency.

#AiCore #DataEngineer #python
Рекомендации по теме
Комментарии
Автор

Finally a clear explanation. I've spent the last 2 hours trying to figure this thing out with youtube video but all it took was your 4 min explanation.

Cimex
Автор

"Self means 'this istance of the class'" instantly made it made sense, thanks!

KjV
Автор

This is the best explanation anywhere on the internet. Thank-you

walterstraub
Автор

thank you !! the fact that self and instance has the same address, was very useful to me, trying to understand since yesterday.))) and Self == This instance is useful too

dbapple
Автор

I was just going through some notes from a while back and saw I had saved the link to this video - without doubt, a mini masterpiece on explaining the concept and use of "self"!

__mas
Автор

Thank you for explaining. I was fooling around with classes and stumbled upon "self" argument. I got the general idea of it when running the code, but you managed to put it into words for me.

Henvag
Автор

Quite intuitive explanation bro ...makes the life easy for ill explained concepts like "self" !!

nayanjha
Автор

best explain of self parameter i have ever seen thank you

DEBLAND
Автор

THIS INSTANCE OF THE CLASS. Well Fucking Done

idanishsharma
Автор

This is an amazing explanation. Thank you!!

Dashew
Автор

I have watched about a dozen videos on this topic and this one takes the cake. Well done! Earned a sub from me!

PythonArms
Автор

The best explanationI heard so far, Thank you.

Ridwan-vbnm
Автор

holy shit you deserve a gold fucking medal for this explanation

thestrappingentrepreneur
Автор

self is this instance of the class
It is the first argument in the method of a class but we don't need to pass it as a parameter while invoking the methods of that class

beinghappy
Автор

So far the best explanation!!! You are great!

sanankazimov
Автор

If only I had founds this earlier...Thanks Mahn💪🏾👊🏿

mR_rb
Автор

Excellent explanation. Don't understand why teachers don't bring this up.

yunustan
Автор

self is just this instance of the class. well said

zahraBatenin
Автор

Excellent! Thanks for the explanation.

andrews
Автор

if self is "this instance of the class", in your 'introduce' method, is self.name an instance of the introduce or __init__ since name is a variable of __init__.

jag
welcome to shbcf.ru