A Python Instance Method

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • Uses a simplified class to illustrate what is meant by an instance method.

Komentáře • 22

  • @JMT34237
    @JMT34237 Před 4 lety +4

    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. :-)

    • @johnphilipjones
      @johnphilipjones  Před 4 lety

      Thank you for your very generous comments. I'm very pleased you like the videos. Check out the supporting website at the following link: www.PythonByteSize.com
      Best wishes
      Phil

  • @walterbalerno7697
    @walterbalerno7697 Před 6 lety +2

    Fantastically patient teaching. Thanks.

  • @eugeniostreliaevfilho8904

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

  • @TheTheDaco
    @TheTheDaco Před 8 lety +3

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

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +2

      +Damir O. Glad the videos are helping.
      Best wishes
      Phil
      (John Philip Jones)

  • @Colstonewall
    @Colstonewall Před 8 lety +4

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

  • @AdityaPratapsingh9125
    @AdityaPratapsingh9125 Před 6 lety +5

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

  • @amitg8223
    @amitg8223 Před 7 lety +2

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

  • @pkavenger9990
    @pkavenger9990 Před 3 lety +2

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

  • @borisrunakov1662
    @borisrunakov1662 Před 8 lety +2

    Once again , great video !

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +4

      +boris runakov Thank you for your generous comment
      Regards
      Phil

  • @samiadel7043
    @samiadel7043 Před rokem +1

    Perfect 💓.

  • @basilgeorge1509
    @basilgeorge1509 Před 2 lety +1

    Thanks sir 💯

  • @mahimsd7645
    @mahimsd7645 Před 6 lety +3

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

  • @linalina2791
    @linalina2791 Před 7 lety

    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

    • @linalina2791
      @linalina2791 Před 7 lety

      Sorry abt that .... i think tat should be local variable :)

  • @srinidhiskanda754
    @srinidhiskanda754 Před 7 lety

    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

    • @johnphilipjones
      @johnphilipjones  Před 7 lety +1

      Variables are different in Python. v is a name that is bound to the string object "hello" I have covered this in the following videos:
      www.pythonbytesize.com/video-a-python-variable-versus-a-python-object.html
      www.pythonbytesize.com/video-python-binding-a-name-to-an-object.html
      Regards
      Phil

    • @srinidhiskanda754
      @srinidhiskanda754 Před 7 lety

      thank you so much for your quick response.