ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Classes and Objects with Python - Part 1 (Python Tutorial #9)

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ส.ค. 2024

ความคิดเห็น • 1.3K

  • @jeremyadamson9618
    @jeremyadamson9618 4 ปีที่แล้ว +489

    "Strive not to be a success, but rather to be of value." - Albert Einstein
    The value you're providing is immense. THANK YOU!

    • @mattiamirigaldi633
      @mattiamirigaldi633 4 ปีที่แล้ว +1

      thx man, really good quote

    • @sumonani1572
      @sumonani1572 4 ปีที่แล้ว +1

      Hii

    • @Kashmiri.111
      @Kashmiri.111 3 ปีที่แล้ว

      Don't take his name, cause CS Dojois from Japan.
      Remember who made Hiroshima's history possible.

    • @tariqalotaibi4852
      @tariqalotaibi4852 2 ปีที่แล้ว +3

      I agree with you, although my English is weak, I understood because he was very simple in conveying information

    • @sellingbuzz6138
      @sellingbuzz6138 2 ปีที่แล้ว +1

      @@tariqalotaibi4852 me too i can understand veryyyy easily rather than others english

  • @keifer7813
    @keifer7813 2 ปีที่แล้ว +75

    What took me 3 days and countless resources to semi-understand, you broke down in 2 videos for me. Absolute hero

  • @aadarshkumarshah8795
    @aadarshkumarshah8795 3 ปีที่แล้ว +111

    why is he not recoginized like other youtubers, his works are always so perfect, clear and easy to understand even the complex topics

  • @annakruse2103
    @annakruse2103 4 ปีที่แล้ว +912

    Whoever disliked this video truly confuses me, it is a well put together video that is super helpful

    • @CodeZeroSix
      @CodeZeroSix 4 ปีที่แล้ว +4

      A pure tutorial from scratch... Well done bro

    • @davidr.flores2043
      @davidr.flores2043 4 ปีที่แล้ว +4

      Agreed; however, what is a 1.5% out of a 100?, so I think this is a great as you can get, the rest...don't even worry about. Cheers

    • @skaito
      @skaito 4 ปีที่แล้ว +11

      don’t worry they’re are a lot of AI that automatically dislike videos corresponding to the amount of views so yea

    • @techslugz
      @techslugz 4 ปีที่แล้ว +3

      ovi some absolute douche. youtubers like this one are great

    • @atlantic_love
      @atlantic_love 4 ปีที่แล้ว +7

      @@skaito Yeah? Seems a little farfetched.

  • @emilyfan99
    @emilyfan99 4 ปีที่แล้ว +46

    Love those robots - spent over an hour reading a textbook on classes and objects. Was completely lost. The robots illustration is a great idea.

    • @sidrafarooq2064
      @sidrafarooq2064 3 ปีที่แล้ว

      could u explain this to me???bcz i dont get this..

    • @NaeemF7
      @NaeemF7 หลายเดือนก่อน

      @@sidrafarooq2064
      Hi I'm not sure if you still need this, please let me know if I can try to help

  • @scottiecarlock4004
    @scottiecarlock4004 4 ปีที่แล้ว +279

    You just taught me everything I learned in a 3 hour class

    • @cnx_1441
      @cnx_1441 3 ปีที่แล้ว

      :)

    • @terraserra4732
      @terraserra4732 2 ปีที่แล้ว +5

      I had a whole course about just that and didn't understand anything. Now I understand what we did in that course by only watching a 10min video xD

  • @ozmaty
    @ozmaty 4 ปีที่แล้ว +276

    Thank you so much! Just had the biggest “Oh shit, I get this now!” moment.

    • @majddirany4011
      @majddirany4011 4 ปีที่แล้ว +9

      SAME!!
      i was about to give up programming and then he explained simply but with clarity!

    • @anamuniz4847
      @anamuniz4847 4 ปีที่แล้ว +3

      Same here! Thank you very much for your explanation.

    • @smikeks
      @smikeks 4 ปีที่แล้ว +3

      You not alone! #MeToo!

    • @ysn7467
      @ysn7467 4 ปีที่แล้ว +1

      the same oooh god he's good at explanation

    • @cloaksorg
      @cloaksorg 4 ปีที่แล้ว +1

      Same, I've researched classes and OOP a bunch before and now I finally get it all. Thanks so much for the video!

  • @nhatvule6705
    @nhatvule6705 6 ปีที่แล้ว +92

    Thank you. Your video is clear, informative, straight to the point, and encouraging to me. Keep posting new one. I am enthusiastically look forward.

  • @Sarah-wd3ro
    @Sarah-wd3ro 6 ปีที่แล้ว +377

    OMG.. Just on time.. I will have my ML mid exam in less than 3 hours.. And no one can explain classes in python better than you 😀😀

    • @khyleaaronmontebon2623
      @khyleaaronmontebon2623 6 ปีที่แล้ว +11

      How'd it go?

    • @erdinn
      @erdinn 6 ปีที่แล้ว

      yeah man, how'd it go?

    • @Sarah-wd3ro
      @Sarah-wd3ro 6 ปีที่แล้ว +39

      It was long time ago🙈..
      But it was very good👌👌👌

    • @erdinn
      @erdinn 6 ปีที่แล้ว +1

      glad you made it

    • @Sarah-wd3ro
      @Sarah-wd3ro 6 ปีที่แล้ว +2

      Thank you.. And good luck to you

  • @archstampton5910
    @archstampton5910 6 ปีที่แล้ว +12

    Officially, this channel has the most valuable Python content on the whole Internet .... for a beginner. I have been struggling for weeks trying to understand the most basic concepts until today.

  • @moulatdahkka
    @moulatdahkka 4 ปีที่แล้ว +15

    Man you don’t how much of favor you did to me with your tutorials, I spent money and I couldn’t understand OOP but after this video I did , Thank you so much you are a blessing .

  • @NaderTaghinia
    @NaderTaghinia 5 ปีที่แล้ว +22

    The way that you introduce the need for the '__init__' method is the best I have seen so far. Thank you :)

    • @user-jd3gf5xw1x
      @user-jd3gf5xw1x 3 ปีที่แล้ว +1

      same. been tryna figure out what the hell that is

    • @ja1xh
      @ja1xh 7 หลายเดือนก่อน

      ​@@user-jd3gf5xw1xsamee

  • @imaslime208
    @imaslime208 4 ปีที่แล้ว +28

    This and the other video on Classes and Objects really helped me break down a mental wall.
    Teaching myself so don’t have formal resources but you are filling that role well (:

  • @jackkelly7557
    @jackkelly7557 4 ปีที่แล้ว +6

    Amazing video. I'm reading a book on Python rn and the section on classes and objects is very convoluted; this simplified things greatly!!! For anyone else learning Python, I think the key is to use multiple sources when a topic is confusing.

    • @rithiksaviog21ec18
      @rithiksaviog21ec18 2 ปีที่แล้ว +3

      bro pls stop reading books tutorials are more powerful

  • @jzl8959
    @jzl8959 15 วันที่ผ่านมา

    6 Years Later, Still Immensely Helpful. Thankful for this gem of a video. Clear, concise, and beginner-friendly.

  • @carlmalacalza4927
    @carlmalacalza4927 5 ปีที่แล้ว +30

    Initially did not understand that ‘self’ like ‘this’ in Java has a special meaning in Python and passes the object name. Great job.

    • @yahoobolt
      @yahoobolt 4 ปีที่แล้ว +4

      To my understanding now, self means the object name being called. Because in class there can be lot of objects being created and self will default to that object.

    • @reefstarnes839
      @reefstarnes839 2 ปีที่แล้ว

      @@yahoobolt big fax

  • @professorx1233
    @professorx1233 6 ปีที่แล้ว +7

    Please keep doing these! They are an immense help and I don't know what I'd do without them! You are a seriously good teacher!

  • @user-pg3bq2do3h
    @user-pg3bq2do3h 5 ปีที่แล้ว +6

    OMG... just in time. My ml final exam is 10 yrs away and this helped me so much. No one can explain classes better than you.

    • @aramahmed9617
      @aramahmed9617 8 หลายเดือนก่อน

      Damn its been 5 years, you might wanna start revising for that test you got there

  • @BrianGlaze
    @BrianGlaze 5 ปีที่แล้ว +11

    CS Dojo truly understands the content as he is able to clearly and easily articulate what and how these concepts work. Applause is in order!

  • @syedmustahsan4888
    @syedmustahsan4888 3 ปีที่แล้ว +1

    I am very Thankful to you for this tutorial
    I was confused when I saw your "Introduction to Classes and Objects" Tutorial, but now my confusion is gone as I have now seen this tutorial
    May ALLAH (The God) Bless you

  • @ym3r854
    @ym3r854 2 ปีที่แล้ว +5

    So glad I found this channel 🙂. Classes have been the most challenging for me so far in my python learning. Thanks!

  • @albertogiunta
    @albertogiunta 6 ปีที่แล้ว +113

    Great one! Keep up the great work man!

    • @ethanreed2672
      @ethanreed2672 5 ปีที่แล้ว

      @killmoo h3h3 what about...?

    • @ethanreed2672
      @ethanreed2672 5 ปีที่แล้ว

      @killmoo I haven't seen it in a while but I probably remember it.

  • @iandan8493
    @iandan8493 4 ปีที่แล้ว

    I'm an accountant with literally zero programming knowledge. Started following your tutorials a week ago. I'm surprised I understand everything so precisely. Your explanations are as "dumbed down" as can be. Thank you

  • @richsajdak
    @richsajdak 7 วันที่ผ่านมา

    THANK YOU SO MUCH! For some reason I could never grasp what was going on with classes. Your teaching style is excellent: you were able to break this down to where I could finally understand it

  • @andrenarstad1757
    @andrenarstad1757 5 ปีที่แล้ว +4

    Thank you for finding my glasses so that I could see the consept of classes!
    Simple and tasty walkthrough! No question asked.

  • @tylerpinheiro9677
    @tylerpinheiro9677 4 ปีที่แล้ว +458

    Print, my name is
    Print, my name is
    Print, my name is
    The real slim shady

    • @rayantovi
      @rayantovi 4 ปีที่แล้ว +26

      chicka chika Errrr ERROR

    • @bhasker5001
      @bhasker5001 4 ปีที่แล้ว +6

      Please stand up

    • @himanshurajput8603
      @himanshurajput8603 4 ปีที่แล้ว

      🤣🤣🤣

    • @Mehmet-qw1qp
      @Mehmet-qw1qp 4 ปีที่แล้ว +2

      BRo THIS VIDEO WAS UPLOADED ON MY 18th BIRTHDAY

    • @swallowedinthesea11
      @swallowedinthesea11 4 ปีที่แล้ว

      print( 'No one cares what your name is, you jabroni!' )

  • @mackenzhiecabute2300
    @mackenzhiecabute2300 4 ปีที่แล้ว +1

    I have been watching so much tutorials, reading so much documentation about this, and I watch your vid. Not even 5 minutes after I just had the biggest realization. Thank you

  • @soniyagoel118
    @soniyagoel118 5 ปีที่แล้ว +1

    You are the best tutor. No one else can teach like you.

  • @bgaarder2
    @bgaarder2 6 ปีที่แล้ว +5

    You have a talent, my friend. Thank you for putting in so much thought on how to convey this subject.

  • @saurabh7199
    @saurabh7199 6 ปีที่แล้ว +29

    Thanks CS Dojo☺☺

  • @audunaa
    @audunaa 3 ปีที่แล้ว

    This is the best beginner class tutorial ive ever seen

  • @TheHomeschoolgal
    @TheHomeschoolgal 3 หลายเดือนก่อน

    I can't believe this is free on TH-cam - thank you!!!

  • @SpringboLives
    @SpringboLives 5 ปีที่แล้ว +9

    Thank youuu, understanding classes has been really challenging for me and this is starting to help :) great examples

  • @pile333
    @pile333 6 ปีที่แล้ว +7

    Oh, I've missed you so much, CS Dojo!
    I even started to learn Javascript in the meantime! ^__^

    • @cryslin2.066
      @cryslin2.066 3 ปีที่แล้ว +5

      u did not recieve a single like in 2 years so I liked ur comment
      :>

    • @pile333
      @pile333 3 ปีที่แล้ว +2

      @@cryslin2.066 Thx. It's very kind of you.

  • @Huguillon
    @Huguillon 6 ปีที่แล้ว

    I´m an illustrator trying to learn some program and understand how it works... and must say you are the best man, it´s so clear and simple the way you teach this... is amazing

  • @vipinkatiyar134
    @vipinkatiyar134 4 ปีที่แล้ว

    You are the best person to teach this object and class. Thanks cs dojo. Love from india 🇮🇳.

  • @braggstv232
    @braggstv232 5 ปีที่แล้ว +9

    i Had also love to see you creating some important but moderately short programs while using OOP.

  • @Ghanemq8
    @Ghanemq8 6 ปีที่แล้ว +9

    thanks for the video, been waiting for it

  • @yourdailytoilet5962
    @yourdailytoilet5962 3 ปีที่แล้ว +2

    Love the simple and clean tutorial man. Thanks for providing these lessons for free.

  • @nickimaldonado7542
    @nickimaldonado7542 3 ปีที่แล้ว

    This is by far the best explanation I have come across.

  • @tjappaschuur4732
    @tjappaschuur4732 5 ปีที่แล้ว +12

    print("you are amazing!")

    • @krenze1164
      @krenze1164 3 ปีที่แล้ว

      you are amazing

    • @user-jd3gf5xw1x
      @user-jd3gf5xw1x 3 ปีที่แล้ว +1

      @@krenze1164 oh shit the program broke. it forgot the last index

  • @brianw3903
    @brianw3903 5 ปีที่แล้ว +3

    Great Job, well done sir...Keep up the great work!!!

  • @Sam-jg5zv
    @Sam-jg5zv 5 ปีที่แล้ว

    You explained classes more succintly and clearly that anyone else in 11 minutes

  • @gsv202000
    @gsv202000 3 ปีที่แล้ว

    After long years, I understand what is classes and objects. Great Job! Thank you so much!

  • @thygovanengeland8758
    @thygovanengeland8758 4 ปีที่แล้ว +6

    I came to this video to learn what I "learned" in a course of someone else.

  • @mathankumars896
    @mathankumars896 6 ปีที่แล้ว +7

    Thanks for this

  • @mohammadikram687
    @mohammadikram687 5 ปีที่แล้ว

    your way of teaching is far more better than what i am being taught on udemy.MAN YOU ARE GENIUS

  • @alair_data6944
    @alair_data6944 ปีที่แล้ว

    I came back to comment on this video. I am a beginner in data science, currently receiving a 3-month training program to usher me in this field. Apart from being a beginner, we finished 'Introduction to python programming in a week and I was so overwhelmed. I watched a 7-hour video here on youtube and I nearly gave me because everyone else made it difficult.
    P.S I am from a college arts background.
    I chanced on CS Dojo's Channel and was quite skeptical because the video is short as compared to other python programming tutorials here. In just 11 mins, I can write classes and objects off the head and run them without error.
    Cs Dojo, a thank you can never ever ever be enough. I really appreciate you, Sir

  • @daltonham2821
    @daltonham2821 3 ปีที่แล้ว +4

    How do we print more than one variable? what if we want the function introduce_self to say, for example,
    Hello my name is Tom
    I am Red
    I weigh 30 lbs
    I get an error saying I cannot concatenate

    • @elfarooq7847
      @elfarooq7847 3 ปีที่แล้ว +1

      I believe you can do it like this
      'def introduce_self():
      print ("hello my name is Tom")
      print ("I am Red")
      print ("I weigh 30 lbs")'
      and then call the function with 'introduce_self()'

    • @dana35200
      @dana35200 3 ปีที่แล้ว

      class Robot:
      def ___init___ (self, name, color, weight):
      self.name = name
      self.color = color
      self.weight = weight

      def introduce_self(self):
      print("my name is " + self.name )
      print("my color is " + self.color )
      print("my weight is" + str(self.weight ))
      r1 = Robot("Tom", "red", 30)
      r2 =Robot("Jerry " , "blue", 40)
      r1.introduce_self()
      r2.introduce_self()

  • @TortoRacoon
    @TortoRacoon 5 ปีที่แล้ว +3

    when you define the class with the function, you enter in parenthesis "(self, name, color, weight)", and when you enter the element it refers to the function like Robot("Name", "color", weight). My question is:
    In the function you are entering 4 things, but when defining the element you entry 3 properties. How does the code understand that "name" goes to name and not to self if self and name occupy the first position? because we saw in earlier videos that the first entry in the reference will replace the first entry in the function... what does the code understand by "self" and why is it different in this case?

    • @yashdhivar9829
      @yashdhivar9829 4 ปีที่แล้ว

      Self is inbuilt by python and it gets recognised as the object that has been created so it gets ignored

  • @vishnuvarthan8304
    @vishnuvarthan8304 6 ปีที่แล้ว

    CSdojo the savior for students from Canada

  • @provakar5496
    @provakar5496 4 ปีที่แล้ว

    I started learn python a week ago, but in your channel what I saw that the person who teach me python, you can do much better. Anyone will understand your logic and what you can try to say. Keep up man. As I saw your passion is making TH-cam, man you've earned it...

  • @dineshsankhat1902
    @dineshsankhat1902 6 ปีที่แล้ว +6

    Hiii my name is dinesh i am your biggest fan You are super

    • @vinao_4558
      @vinao_4558 5 ปีที่แล้ว

      From Pied Píper.

  • @prackertracker7189
    @prackertracker7189 5 ปีที่แล้ว +7

    Why your thumbnail includes code from Pycharm but your tutorial is on jupyter I'm triggert

  • @mizuhashitsunoka
    @mizuhashitsunoka 6 ปีที่แล้ว +1

    I have my semester exams in a couple of weeks with full of obsolete curriculum, and here I am restarting Python. Your way of teaching is really appealing and engaging. Glad to be part of Dojogang :')

  • @upbge_codeart4125
    @upbge_codeart4125 3 ปีที่แล้ว

    I've looked at numerous other videos on this specific __init__ subject. This video is the clearest and easiest to understand. I finally understand the purpose of the __init__ function.
    THANK YOU THANK YOU!

  • @gastonscazzuso4113
    @gastonscazzuso4113 4 ปีที่แล้ว +4

    Thank you !.. FInally I understood what the hell are "Classes" !!! :)

  • @kiranlalasangi6096
    @kiranlalasangi6096 6 ปีที่แล้ว +7

    can explain more about __init__ function?

    • @skalex055
      @skalex055 5 ปีที่แล้ว

      The init function is run when the class is first initialised. It is already there but contains no code. You can overwrite it by redefining. This means you can put all of your variables like in the video inside of it.

    • @derfrueder5975
      @derfrueder5975 5 ปีที่แล้ว

      @@skalex055 Is that comparable to an constructor?

    • @skalex055
      @skalex055 5 ปีที่แล้ว

      @@derfrueder5975 yes, it will run when the class is created.

    • @monlumbre2861
      @monlumbre2861 5 ปีที่แล้ว

      Try to understand OOPS concept
      it helps you to understand it

  • @megoshmego
    @megoshmego ปีที่แล้ว

    this video is still saving lives, four years later

  • @ThomasMaltuin
    @ThomasMaltuin 5 ปีที่แล้ว

    DOJO! I have only watched a bit so far but I have already noticed something special about your style of instruction. I want to say thank you for bringing out subtleties such as intentionally using different names for the formal parameters and the class variables! Using the same name is a wonderful convention, but by initially breaking that convention, students are much less likely to assume that they have to match for the code to work. This subtlety is important for a computer science student to progress from writing a little python to actually understanding what they're doing! Kudos!

  • @britemun
    @britemun 5 ปีที่แล้ว +3

    Hey bro...U R Great as always ! I have one question though,
    What is the use of classes and is it helpfill in Machine Learning or Deep Learning?

  • @abishekravichendar4512
    @abishekravichendar4512 6 ปีที่แล้ว +4

    Hai cs dojo what happens if we doesn't use the word self.

    • @Fleathemighty
      @Fleathemighty 6 ปีที่แล้ว

      it still works if you use something else but i think it's just a convention. i guess it just makes it easier for someone else to read it. the one thing that needs to stay the same is the __init__ custom function

  • @maheshs4056
    @maheshs4056 4 ปีที่แล้ว

    What I really love about these videos are the simplicity of the language used, which makes it easy for a beginner to quickly grasp the concepts of classes.
    I'm glad I found your channel. :)

  • @raunchydolphin5387
    @raunchydolphin5387 2 ปีที่แล้ว

    For some reason I just couldn't wrap my head around classes but this video just made them click. Thank you so much!

  • @robinkovacic7961
    @robinkovacic7961 4 ปีที่แล้ว +4

    isn't this just a function with extra steps?

    • @xfire3778
      @xfire3778 4 ปีที่แล้ว +1

      Robin Kovačić that’s what confuses me, what’s the purpose of it

    • @Sam-wg1hc
      @Sam-wg1hc 4 ปีที่แล้ว +3

      Its not a function, a function already has information in it, compare the function to an apple pie, a class is like a recipe, with the class you can make all sort of cakes

  • @Mads_Vel
    @Mads_Vel 6 ปีที่แล้ว +3

    I study computer science, but don't understand anything of it :S Maybe I should reconsider my choise or check my IQ one more time..

  • @stuartjones1425
    @stuartjones1425 4 ปีที่แล้ว +1

    Hands down the best explanation of OOP I've seen. Thank you!

  • @sastisaravanan1294
    @sastisaravanan1294 ปีที่แล้ว +1

    i am truly satisfied by the way u say "robot" , btw it was a well made and concise video , it was really useful

  • @ednalvavalentim4839
    @ednalvavalentim4839 6 ปีที่แล้ว +3

    Could you put English subtitles in the videos,please?.I am Just learning english, and it would be so easier to watch the videos.

    • @gba04
      @gba04 6 ปีที่แล้ว +2

      Great idea i am also learning english and it is so hard to find good python tutorials in my native language and it would get so easier to learn with english subtitles, i hope he sees your comment and put the it in the next video!

    • @guiilhermeoliveira7063
      @guiilhermeoliveira7063 6 ปีที่แล้ว

      I was about to ask the same thing.

    • @hitcom16
      @hitcom16 6 ปีที่แล้ว +1

      Turn on captions from options.

    • @hitcom16
      @hitcom16 6 ปีที่แล้ว +1

      Guilherme Alfredo there r 3 dots on right top side. Like ' : ' this. THERE'S caption option... In my TH-cam app yes it's there. Try r search it there.

  • @anuragtripathi1744
    @anuragtripathi1744 6 ปีที่แล้ว +4

    friend plz make a QnA video i have many questions for you

    • @CSDojo
      @CSDojo  6 ปีที่แล้ว +2

      What are your questions? :)

    • @anuragtripathi1744
      @anuragtripathi1744 6 ปีที่แล้ว +1

      Can we make our own packages in Python and import in our program?

    • @mukteshwartripathi9582
      @mukteshwartripathi9582 6 ปีที่แล้ว +1

      Yes plz tell I was also having this confusion?

    • @swallowedinthesea11
      @swallowedinthesea11 6 ปีที่แล้ว

      Yes. Write a function etc., use the import module to use that function etc. in a file.
      import random # built-in module
      guess = int(input('Guess my number: ')
      x = random.randrange(101)
      if guess == x:
      print('Awesome!')

    • @anuragtripathi1744
      @anuragtripathi1744 6 ปีที่แล้ว +1

      No,My Question is can i create my own packages

  • @Grungydan
    @Grungydan 5 ปีที่แล้ว +2

    Your vids are way better than the ones out of a course I paid for. Thanks so much for taking the time. Consider me subscribed!

  • @Tombalino
    @Tombalino 6 ปีที่แล้ว

    You are reaching more people than there are in an entire university. Thankyou

  • @carriezhang4351
    @carriezhang4351 5 ปีที่แล้ว +3

    how did you "#" multiple lines at one time?

    • @carriezhang4351
      @carriezhang4351 5 ปีที่แล้ว

      @Berke Icel works! thx!

    • @taran7954
      @taran7954 5 ปีที่แล้ว

      Or you can do this ' ' ' hello hey ' ' '

  • @LeslieeGaming
    @LeslieeGaming 3 ปีที่แล้ว +5

    I don't trust chinese in programming...

  • @awa4765
    @awa4765 3 ปีที่แล้ว

    Hey man thank you so much
    Everyday when I come back from school I come and watch this Python tutorial and I planned to at least watch 1 of them daily

  • @mazzomadhan
    @mazzomadhan 3 ปีที่แล้ว

    Anyone is not understand able about the above one then just see his previous video about classes then watch this that worked for me :)

  • @markdesilva7207
    @markdesilva7207 2 ปีที่แล้ว

    Extremely clear and informative video. I cannot understand why anyone would dislike this vid

  • @jahidnoyda9521
    @jahidnoyda9521 3 ปีที่แล้ว

    class Robot:
    def introduce_self(r1):
    print("My Name is " + r1.name)
    r1 = Robot()
    r1.name = "Tom"
    r1.color = "blue"
    r1.weighr = 30
    r1.introduce_self()
    #we can right r1 instead of self.name as you wrote in python 9
    # i tried and it works

  • @valarietan
    @valarietan ปีที่แล้ว

    Thank you for making this so simple and easy to understand. I was stumped by Class for an entire week until I watched your video.

  • @juanok2775
    @juanok2775 6 ปีที่แล้ว

    dude I have been watching python videos everywhere but yours are so much easier to understand!

  • @rahultirkey7950
    @rahultirkey7950 4 ปีที่แล้ว +1

    You cleared my doubts about constructors which I wasn't able figure out for several weeks. Now I can sleep tonight with no doubts. Thanks.

  • @daveprado2903
    @daveprado2903 4 ปีที่แล้ว

    Bro, you dont know how much of a help your videos have become, we are so thankful and hoping you the best you deserve!

  • @ibekwevictor1158
    @ibekwevictor1158 ปีที่แล้ว

    This is the best video so far to understand class and Object

  • @rohanpulikkal5614
    @rohanpulikkal5614 4 ปีที่แล้ว

    I finally found a youtube channel that explains everything properly! Thank you very much for the great explanation.

  • @nukalaakhileshreddy2111
    @nukalaakhileshreddy2111 4 ปีที่แล้ว +2

    Bro....This is the first time I'm commenting on a youtube video,
    I have watched many videos on Python but Your videos are very clear and time-saving, thanks for the videos bro?

  • @jeremycollier4377
    @jeremycollier4377 2 ปีที่แล้ว

    I know this video is a few years old, but I wanted to make sure to comment and say good job! Very simple and straightforward, something a lot of these "basic python" videos lack. The way you explained attributes and the __init__ method is something that a lot of videos don't even go over or explain the why (and the reason I was watching this video in hopes it would be explained!)

  • @adrianarreguin1739
    @adrianarreguin1739 ปีที่แล้ว

    dude this tutorial helped a lot! I don't know why college classes are taught in a manner that makes it so that you can't make mistakes. learning is 99% making mistakes.

  • @Kekkle-
    @Kekkle- 3 ปีที่แล้ว

    i spent like 4 hours reading and re-reading my (very expensive) college textbook trying to understand this, and this video taught me everything the book was trying to say in like 10 minutes

  • @techbbas
    @techbbas 3 ปีที่แล้ว +1

    Great work..I will add one definition about the __init__ function.
    "__init__" is a reserved method in python classes. It is called a constructor in object-oriented terminology. This method is called when an object is created from a class and it allows the class to initialize the attributes of the class.

  • @ggbin8092
    @ggbin8092 2 ปีที่แล้ว

    This video gives me a huge relief. ngl, I was so frustrated after watching 2 video tutorials and reading 2 articles about OOP and couldn't understand a thing like the way I did in python previous lessons, until i found this.

  • @SalmonJumps
    @SalmonJumps 3 ปีที่แล้ว

    Dude I've taken multiple course and watched so many videos trying to understand this and I never did until now, kudos!!

  • @user-qy7lm7oj6x
    @user-qy7lm7oj6x 11 หลายเดือนก่อน

    jeez u made it look as simple as it could get man nicely done

  • @isaacobamehinti7030
    @isaacobamehinti7030 4 ปีที่แล้ว

    I've watched so many videos trying to grasp this concept, but only from your video have I attained clear understanding! Thank you so much! I look forward to watching part 2.

  • @phanphan2251
    @phanphan2251 4 ปีที่แล้ว

    This is very well explained, even if i'm not a native english speaker i understood this course easely.

  • @WaliSayed
    @WaliSayed 10 หลายเดือนก่อน

    Such a wonderful tutorial never gets old. It helps anyone who wants to know Python classes. Many thanks for this!

  • @KriszX12
    @KriszX12 3 ปีที่แล้ว

    Been learning JavaScript for 9 months or so by creating small to middle-sized projects. I really felt that I can read Python and Java with ease and understand it. Now I learn python and so far it pretty much easy to learn. Almost every object-oriented concept can be used from JS in Python. So far it is very convenient to learn Python after JS. I will be curious about Java, but as a hint, I can still apply object-oriented concepts there as well.

  • @xinjietang8344
    @xinjietang8344 2 ปีที่แล้ว

    clear english and content, better than other youtubers

  • @pankuang5669
    @pankuang5669 4 ปีที่แล้ว

    I have seen several lectures related to class and objects, i find your lecture is the best, no one can explain python classes and objects than you ! Thank you so much. Love from Asie ♥

  • @gkpmohan
    @gkpmohan 5 ปีที่แล้ว

    I am a beginner and I like your videos a lot. Your tutorials help me to easily understand and execute the concepts.

  • @jorgeiselgato
    @jorgeiselgato 4 ปีที่แล้ว +2

    very helpful, ive been struggling with OOP and just classes in general. This was exactly the information i was looking for. GOD BLESS