A Python Instance Method

preview_player
Показать описание
Uses a simplified class to illustrate what is meant by an instance method.
Рекомендации по теме
Комментарии
Автор

Fantastically patient teaching. Thanks.

walterbalerno
Автор

I've seen many videos on programming and I gotta say yours are on the top of my list in their ease to understand. The combination of pictures, arrows and eloquent explanations is FANTASTIC. Some people do have a gift of breaking things down in simple terms. You truly do have that gift. Thanks for sharing your gift with all of us. :-)

JMT
Автор

These videos are fantastic. Many more students should be aware of their existence. Thank you so much.

eugeniostreliaevfilho
Автор

Thank you so much. Everytime I don't understand something from my scripts/lectures a JPJ video makes it understandable.

TheTheDaco
Автор

Thnks a lot for the quality videos you make for us using animated explanations.

AdityaPratapsingh
Автор

Very nicely done, John. I think this is a question/subject that's rarely covered in other people's tutorials. So, well done!

Colstonewall
Автор

Wow, you explained with so much detail. Very nice and thanks.

amitg
Автор

I wish i had a teacher that will teach me everything just like that.

pkavenger
Автор

although I don't have the authority ...I m giving you the title of Sir John

mahimsd
Автор

thank you sir, In python everything is object (variables, functions etc) so let say i created small program example.py

v = "hello" # here i declared variable 'v' since everything in python is object than it is also object
print(v) # here i am accessing that object (variable 'v' ) accessed v without class name (WITHOUT INSTATIATION)

MY DOUBT IS:
declared value ( v = "hello") here v is object right so next time when i will access directly v ( print(v)) here v is an object but i didn't used any class to create object so how it is possible.
OR
is it like there is universal class that can give access to some variable without instantiation

srinidhiskanda
Автор

Why didn't we use self.added_values here if we are calling via instance of a class.

def add_them(self, x, y)
self.added_values=x+y
return self.added_values

linalina