Python Classes in 1 Minute!

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 146

  • @yuval_kahan
    @yuval_kahan 5 месяцев назад +60

    Amazing how some people can explain something in such a short time that takes an hour for someone else
    ...on the spot! Thank you so much!!

  • @vernanonix
    @vernanonix 9 месяцев назад +25

    I'm in a class right now and my adhd is running wild and I could not make sense of these things. And then I found this and it's essentially, to my understanding, just attaching methods to variables and that makes it make so much more sense to me.

  • @bobtheoutbuilder8552
    @bobtheoutbuilder8552 Год назад +536

    dafuqqq.., you can call "self" whatever you want, I'm programming in Python for like 6 years and never knew that.

    • @reguret2976
      @reguret2976 Год назад +37

      how'd you even start programming, you learn this in most tutorials

    • @bobtheoutbuilder8552
      @bobtheoutbuilder8552 Год назад +126

      @@reguret2976 I was like 13 and didn't understand English so I just did what they did without understanding...

    • @xxlarrytfvwxx9531
      @xxlarrytfvwxx9531 Год назад +44

      Just don't use "this" that's an Easter egg.

    • @jaserogers997
      @jaserogers997 Год назад +46

      ​@@reguret2976 why would he need to know useless information like that to start coding.

    • @G.U.I-t3
      @G.U.I-t3 Год назад +1

      Bro, my mind is blowing 🤯

  • @thetraitor3852
    @thetraitor3852 Год назад +136

    This is a pretty good and quick explanation. I hope to see more. Maybe some tips for VS code as well.

  • @_Ayke
    @_Ayke 8 месяцев назад +52

    I love the videogame analogy. I understand it more easily with a game. Thank you!

  • @KeysXTheGamer
    @KeysXTheGamer 5 месяцев назад +5

    now i really understand classes. aint no way i just handled a complex concept in 1 minute and now i know what classes can do. thanks.

  • @alvinpierre-louis2586
    @alvinpierre-louis2586 8 месяцев назад +1

    Probably the best tutorial i've seen on Python classes so far. Everyone else on RUclips just seems like their endlessly talking about nothing

  • @maxcohen13
    @maxcohen13 Год назад +12

    These are awsome and easy-to-digest bits that make learning so much easier. So many tutorials out there are just blabbing away and wasting time.
    Thanks for these!

  • @PeksEpicMusic
    @PeksEpicMusic 6 месяцев назад +1

    I understood more about classes than a full explanation in a course this was legit!

  • @duffel87
    @duffel87 Год назад +3

    Im currently enrolled in Data Science MSc.This video is great! thank you

  • @OmT-yp8bx
    @OmT-yp8bx 4 месяца назад

    I WAS STRUGGLING ON CLASSES AND THIS REALLY HELPED CLEAR THINGS UP THANK YOUUUU!

  • @user-ih5ng6qk4p
    @user-ih5ng6qk4p Год назад +4

    classes was so intimating to me, with this example it made it so clear! thanks !

  • @rohitjj99
    @rohitjj99 Месяц назад

    I was searching for videos related to Python basics and I came across this. I understood this very quickly! Thank you!

  • @executism
    @executism 11 месяцев назад +7

    Brief and concise explanation while delivering it well in a comprehensive manner. Thank you.

  • @WadieGamer
    @WadieGamer 8 месяцев назад +1

    My dog understood this tutorial, God what a beautiful way of explaining.

  • @iriggedthegame3512
    @iriggedthegame3512 Месяц назад

    holy shit this actually makes so much sense now. thank you b001 🔥

  • @yohandhananjaya6041
    @yohandhananjaya6041 Год назад +12

    Great explanation, so easy to understand ❤

  • @northernandyboy
    @northernandyboy 9 месяцев назад

    Wow! been battling to understand this concept and you explained it in 1 minute.

  • @TMOD68
    @TMOD68 5 месяцев назад

    Bro that was so helpful,its just 1min and really the best tutorial what i ever saw

  • @rupaksaha9050
    @rupaksaha9050 Год назад +8

    Nice video :D Also I am the first one here 😂 I see how this can be useful in recycling old code

  • @589kin
    @589kin 2 месяца назад

    Thankyou my Guy! you were born to code. Amazingly explained. Even for a newbie like me :)

  • @mika2597
    @mika2597 3 месяца назад

    I don't know why but this channel is the only one that can give me understanding. 😅👍👍👍🎉

  • @CyberDevilSec
    @CyberDevilSec 9 месяцев назад

    THANK YOU! You saved me a LOT of headache!

  • @SumantaSarkarUK
    @SumantaSarkarUK 5 месяцев назад

    Excellent illustration. To the point ❤

  • @SirIsaacNewton-bf6se
    @SirIsaacNewton-bf6se Год назад +4

    very informative and just to the point. thank you so much 😊

  • @Chilli_Tea
    @Chilli_Tea 11 месяцев назад +1

    Python trying its absolute hardest to be an OOP language for absolutely no reason, bro just stay functional

  • @Shariqwastaken
    @Shariqwastaken 9 месяцев назад

    Short and easy to understand, Great job🔥

  • @pablofueros
    @pablofueros Год назад +3

    Nice video! Btw, what's the theme?

    • @b001
      @b001  Год назад +2

      SynthWave’84

  • @chrishabgood8900
    @chrishabgood8900 6 месяцев назад

    this is one reason why I prefer ruby, self is the instance so you do not have to pass it in.

  • @hanging_with_my_gnomies626
    @hanging_with_my_gnomies626 Год назад +1

    Best python RUclipsr out there🤌

  • @MaverickPagan-w6z
    @MaverickPagan-w6z Месяц назад

    thankyou so much, crystal clear explanation

  • @muhammodmostofa1413
    @muhammodmostofa1413 2 месяца назад

    what the hell u explained it soo nicely...Thanks man

  • @kaushalshailbinha7365
    @kaushalshailbinha7365 9 месяцев назад

    short and best explanation for class in python 🙂

  • @ferroalloys594
    @ferroalloys594 2 месяца назад

    One might even, in an especially well constructed language's syntax (correctly constructed and implemented semantic rules) simply replace the term CLASS with the rather less esoteric term TYPE? Anyway just a thort, e.g.
    TYPE simple;
    SUPTERTYPES display;
    self.display(0, 0, 'The type of types! Wicked...')
    END.
    The TYPE display's definition (inherently an inbuilt type...) is left as a reader's exercise in the simplified language suggested above (so please don't use the misleading term "CLASS" where such a term simply confuses its reader!). Thanks for reading, hope this helps someone, somewhere to get even at least a slightly less confused way of realising the use of the key terms involved.

  • @alionakrevsun7101
    @alionakrevsun7101 7 месяцев назад

    Thank you. This vidio help me for create own game and a firt project. Shortly, quicly and cleary.

  • @ForRo3sS
    @ForRo3sS 6 месяцев назад

    Beother that was the best explanation :):) ı have just started learning and couldn’t get my head around. Now ı know! Thanks!

  • @AshwaniKMishra
    @AshwaniKMishra Месяц назад

    Watching this before internship interview

  • @arcanelore168
    @arcanelore168 10 месяцев назад

    Excellent explanation! Keep on rockin!

  • @grimreaper4801
    @grimreaper4801 8 месяцев назад

    OMFG just explain soo fucking well for me. midterm in 2 hour.

  • @CyberNinja-p1t
    @CyberNinja-p1t Год назад +1

    OMG, finally i understand class thanks bro ❤

  • @gemilangrahmandhika7509
    @gemilangrahmandhika7509 Месяц назад

    In case of character, what's the difference between the uses of class and dictionary? Wouldn't they produce the same effect?
    I might change my style of storing multi key variables from the dictionary to class. Would that be a good way to do?

  • @17ashishemmanuel
    @17ashishemmanuel Год назад

    Cool. Also, when are you gonna finish your Javascript course

  • @robertodanielmedinadomingu9016

    Thank you!! I needed this so bad!

  • @cybercop47
    @cybercop47 11 месяцев назад

    very helpful I didn't understand what _init_ and what self meant now I know

  • @arttheart130
    @arttheart130 11 месяцев назад

    Beautiful explanation, thank you

  • @assem6084
    @assem6084 6 месяцев назад

    How about an item and extras in the bag like ammunition and a first aid bag Store them

  • @sean-paul5080
    @sean-paul5080 День назад

    Damn, i wanna do smth like this for my game idea

  • @_silentrose
    @_silentrose Год назад

    Amazing video and perfect timing!! I just finished a section in my course on classes and created a deck of cards 😊♦♣♥♠

  • @tiwongemalomboza9993
    @tiwongemalomboza9993 11 месяцев назад

    #Inserts a class in my code#
    Python: its a class.... Init?

  • @Debelinka
    @Debelinka Год назад

    My fav channel 💪🏼💪🏼

  • @Blaxolot
    @Blaxolot Год назад +1

    Great video, you explained it clearly in a short time 🙂

  • @GHAITHMSON
    @GHAITHMSON 6 месяцев назад +1

    perfect thank you so much

  • @blackholesun4942
    @blackholesun4942 Год назад +3

    Can you add another variable in double_speed ?

    • @b001
      @b001  Год назад +1

      Yes

  • @fromearth6282
    @fromearth6282 Месяц назад

    Jesus christ best explanation ever.

  • @SpesMagisteriiGradus
    @SpesMagisteriiGradus 8 месяцев назад

    ngl this is soooo good, but i must add i am really good at python, i just never had to build classes for w while without gpt lol, so if youre a beginner and youre confused it's a good general overview

  • @ferroalloys594
    @ferroalloys594 2 месяца назад

    Maybe, even perhaps, using the readily available keyword TYPE (rather than the obfuscating pseudo-novel term "class") would have saved a lot of people a lot of time trying to 're-conceptualise a concept they already, in many, many cases, intuitively had a quite reasonable understanding of? Ergo, when is a class not a type, when it is a class! Simples... ):-)

  • @kimsungho4114
    @kimsungho4114 6 месяцев назад

    Thank you for the awesome video!

  • @akshayvengal451
    @akshayvengal451 9 месяцев назад

    Hey, do you have any python course created by you for beginners? I really like your teaching style, would like to join the course if it is available.

  • @hassansyed6087
    @hassansyed6087 6 месяцев назад

    Wait, why didn't the ninja's speed double? I kinda lost that part

  • @danda_legenda
    @danda_legenda Год назад

    What color theme do you use? It looks so good.

  • @nojopck
    @nojopck 3 месяца назад

    thanks this explained it well.

  • @sergiorubencampero8479
    @sergiorubencampero8479 Год назад

    Great video! I need more how to python videos !

  • @FreshSheets
    @FreshSheets Год назад +1

    Damn that was good bro

  • @KeithFlint350
    @KeithFlint350 Год назад

    85 second and I know all that I needed to know!

  • @that_guy1211
    @that_guy1211 9 месяцев назад

    damn, and even after this i still don't know where classes are actually required to use ,.,

  • @AskforQAli
    @AskforQAli Год назад

    Awesome format

  • @SyedNaqvi-u7r
    @SyedNaqvi-u7r 3 месяца назад +1

    Love it when a youtube video explains better and quicker compared to my Professor, TA, and $89 Textbook combined :,) Thank you very much for this lol

  • @goforward684
    @goforward684 8 месяцев назад

    You sir just make 24 minutes into 1 minutes

  • @KsMemess
    @KsMemess 4 месяца назад +2

    I never thought a 2 min video could teach me so much...

  • @JASHiNSENNiN
    @JASHiNSENNiN Год назад

    Wooaahh whats your color scheme?

  • @resdanvx
    @resdanvx Месяц назад

    Amazing vid

  • @N1essoh
    @N1essoh Год назад

    very easy explanation thank you

  • @VIIben
    @VIIben 11 месяцев назад

    How/why does your terminal look like that, like the spot where you can type and the line directly above it?

  • @johanneszwilling
    @johanneszwilling 11 месяцев назад

    😎 MOAR!!

  • @TestyCool
    @TestyCool 11 месяцев назад

    "The definition of genius is taking the complex and making it simple."
    --Albert Einstein

  • @traumdeuter8229
    @traumdeuter8229 11 месяцев назад

    i still don't get what "self" is for, isn't in useless?

  • @demonshooter1521
    @demonshooter1521 9 месяцев назад

    verry usefull video but i have a question : whta doest the "f" stand for whent you type "print(f"warior speed: {warrior.speed}")" ?

    • @okay8454
      @okay8454 8 месяцев назад +1

      if you havent gotten your answer the f indicates an f-string which allows you to use the brackets {} to put variables directly into the string

  • @Agent-lg1mu
    @Agent-lg1mu 2 месяца назад

    what theme you are using in vs code?

  • @mightyphaeris5053
    @mightyphaeris5053 11 месяцев назад

    THANK YOU

  • @Boofski
    @Boofski Год назад

    We need a b002 for Java

  • @sydneyreyes4207
    @sydneyreyes4207 Год назад

    can you finish your python playlist im'ma python video marathon..

  • @fromearth6282
    @fromearth6282 Месяц назад

    What is running on this page to tank the browser performance???

  • @5hobbzi
    @5hobbzi 8 месяцев назад

    thankyou

  • @ardshh2649
    @ardshh2649 10 дней назад

    I am truly surprised and angry at the same time.
    I am taking a certificate from IMB and one would think that being a large company their courses would be very effective. But the explanations are too tedious and long. But you in just over 1 minute you helped me understand something that according to the "experts" they couldn't in hours of classes 🤦🏻‍♂️

  • @paulogaviola5522
    @paulogaviola5522 10 месяцев назад

    dude, what the heck. Thanks!

  • @ferroalloys594
    @ferroalloys594 Месяц назад

    Pithun classes in one word "TYPE's"! Simples (:-)

  • @antonellomascarello4698
    @antonellomascarello4698 6 месяцев назад

    Brilliant!!

  • @anttonivirtanen1779
    @anttonivirtanen1779 14 дней назад

    thank yu very much

  • @abdultheseekerofknowledge4453
    @abdultheseekerofknowledge4453 Год назад

    Is OOP Python good, all i see is function based usage in Python community most of the time

  • @muhamedrdrdtdt
    @muhamedrdrdtdt 8 месяцев назад

    I'm struggling to grasp what self does

  • @RanaMorjal2
    @RanaMorjal2 3 месяца назад

    Awesome 🎉

  • @Riyancodes
    @Riyancodes 2 месяца назад

    Ur videos.helps me alot.but can u please provide the source code in the description.

  • @rfm412
    @rfm412 Год назад

    Can you elaborate on self?

  • @Erfan_daneshmand
    @Erfan_daneshmand 9 месяцев назад

    short and great

  • @akhmadchaidar4045
    @akhmadchaidar4045 10 месяцев назад

    what's theme that you use?

  • @Viski982
    @Viski982 Год назад +2

    hey man can you tell me the theme name ?

    • @b001
      @b001  Год назад +2

      SynthWave’84

    • @Viski982
      @Viski982 Год назад +1

      @@b001 Thank you! Thanks! Thank you so much! Splendid! I appreciate you! I gave you my love! Let me have your permission to give you my appreciation! Nice! Much love!

  • @froggee749
    @froggee749 Год назад

    theme?

  • @Aman-cg2yt
    @Aman-cg2yt 4 месяца назад

    Like switch function

  • @olagarto1917
    @olagarto1917 7 месяцев назад

    aint separate instance atribution, like, the defoult? i dont get it
    if i call warrior.double offcourse it is ment to use the double inside the warior and not any other arbitrary stuf... so what is the point of telling the thing tha it is itsef?

  • @powerporridge1337
    @powerporridge1337 Год назад

    brilliant ! 🎉