What does Python's __init__ method do?

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

(And apologies for the cut-off sound at the start of the video!)
Рекомендации по теме
Комментарии
Автор

Your typing skills are otherworldly.
Oh, and I really like your teaching style!

Edit: I just subscribed to manning to read your book - what a cool platform

studentHindes
Автор

This video just prevented me from going down a rabbit hole. Thanks!

smashies
Автор

Nicely explained. Keep up the good work.

safkaify
Автор

Thank you so Much for having the live read online reading, it's useful. I will start reading your book. God bless you!
Thank you

muntadher
Автор

Great video, thanks for sharing this.

jacques
Автор

wow, such a concise explanation. Love your typing speed and accuracy!

Al-lgnv
Автор

Thanks also for saying "dunder init", as it just helps tons to know the correct wording when talking about code !

oLars
Автор

thank you this explained a lot of things to me

bigbadcatbigbcy
Автор

So much great info, definitely deserved more views!!!

tarykhai
Автор

Great video !, videos like this are very informative and help young developers like me.

basil
Автор

What is the point of the lines that say:

self.x = x
self.y= y ?

SteamTrain
Автор

Thank you for the video. Ca you please suggest a good book to read on Classes and Objects. Thank you

kdpr
Автор

If the dunder method is used to initialize attributes then what's the use of walrus operator? Btw great video
I'm still learning.

fusebox
Автор

I really like the way you teach Python!
Do you also have a video about the builder pattern, or would you be willing to create one?

hashimnaushahi
Автор

but what is the __init__ doing? i mean, you can just delet it and the code works the same... so what is it actualy duing?

olagarto
Автор

Dude, you're good at teaching :P

JesseUnderdog
Автор

I wish I could type my code like you. I still have to look at the keyboard 😅

manny
Автор

I didn't get it at all, but great video, thanks.

vinkenwood
Автор

There is also the __init__.py file, which would be another good topic

cetilly