Python 3 Tutorial for Beginners #18 - Methods & Attributes

preview_player
Показать описание
----- COURSE LINKS:

---------------------------------------------------------------------------------------------
Other tutorials:

----- NODE.JS TUTORIALS

============== The Net Ninja =====================

================== Social Links ==================

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

My head spins a bit because I am a newbie but I will rewatch it. Great content. Much appreciated.

ukaszferenc
Автор

The best teacher in the world, no doubts.

lacherolachero
Автор

I have already gone through some other python tutorials but it's the best till now..!!

pratapchandrasen
Автор

Great work Shaun.. not even this video specifically but your whole python playlist, great revision

hl
Автор

Hello Sir, your tutorial is more than awesome. It is Excellent. Thank you very much.

ABC-xntd
Автор

Very clear explanation of @classmethod and @staticmethod. Could you please post a video explaining why and where these should be used ?

borisrunakov
Автор

excellent video, clear concept, love it!

yatnoktse
Автор

In commons method you write as parameter 'cls' but when you call the function you didn't use any definition. How is that possible to work?

theodoros_mpousoulas
Автор

This is kinda a weakness of Python it seems, it has to be quite verbose to perform a similar task done by other languages when it refers to static methods on classes, to perform the same C#/C++ and similar just need to write static in front of the method and it can take in parameters as-well as access attributes.

devilmanscott
Автор

Sir, if the data attribute of the class and the method attribute are in same scope, then the data attribute will be given (a) higher priority (b) equal priority

mohitdahiyakakroi
Автор

Hello ninja!
In 9:10 you say that staticmethods don't take anything except the parameters we pass in it. But it takes inside it Planet.shape and runs correctly. What's going on here and what' the difference with classmethod ( where we can replace cls.shape with Planet.shape and take the same results) ?

dimitrisandroid
Автор

hey can u help?
so instance is fixed in class
and attributes is not fix in class
we can change the value of attributes outside the class but not instance right?

iscoto
Автор

I can't find any documentation of the "f" in the print statement. Can you point me in the right direction thanks.

continental_drift
Автор

what is the purpose of init method in class

herambkulkarni
Автор

Hey @classmethod is not working ij python 3+ version. It gives Nameerror as class name is not defined 😤

upadhyayansh
Автор

Flat Earthers are disliking this video because they don't believe that gravity makes planet round ;)

nightcrawler
Автор

I love your print("accent") and tutor🤍

Charged_Thunder