Python Classes and Objects || Python Tutorial || Learn Python Programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ส.ค. 2024
  • 𝙎𝙩𝙖𝙮 𝙞𝙣 𝙩𝙝𝙚 𝙡𝙤𝙤𝙥 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: snu.socratica.... Classes are a fundamental part of modern programming languages. Python makes it easy to make a class and use it to create objects. Today you will learn the essentials of programming with classes: how to initialize them, write methods, store fields, and more.
    To learn Python, start our Python Playlist HERE:
    bit.ly/PythonHe...
    Subscribe to Socratica: bit.ly/1ixuu9W
    ♦♦♦♦♦♦♦♦♦♦
    We recommend:
    Python Cookbook, Third edition from O’Reilly
    amzn.to/2sCNYlZ
    The Mythical Man Month - Essays on Software Engineering & Project Management
    amzn.to/2tYdNeP
    Shop Amazon Used Textbooks - Save up to 90%
    amzn.to/2pllk4B
    ♦♦♦♦♦♦♦♦♦♦
    Ways to support our channel:
    ► Join our Patreon : / socratica
    ► Make a one-time PayPal donation: www.paypal.me/...
    ► We also accept Bitcoin @ 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9
    Thank you!
    ♦♦♦♦♦♦♦♦♦♦
    Connect with us!
    Facebook: / socraticastudios
    Instagram: / socraticastudios
    Twitter: / socratica
    ♦♦♦♦♦♦♦♦♦♦
    Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
    Written & Produced by Michael Harrison (@mlh496 on Twitter)
    FX by Andriy Kostyuk
    ♦♦♦♦♦♦♦♦♦♦

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

  • @Socratica
    @Socratica  2 ปีที่แล้ว +22

    Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica

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

    Watching these videos make me feel like, I'm an FBI agent and my supervisor is directing to me a deadly mission. Really enjoy the videos!

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

      Exactly! I love it

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

      feels like being hitman

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

      Your phone will destroy itself after the message. Good luck agent Py.

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

      this video make MI movies look like sesame street.

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

      Gotta overthrow this modern "class"-system

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

    It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

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

      That's some great news!

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

      pls elaborate videos, need more content :-)

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

      But I don't know why every video have too much time gap. If some one want to complete the whole course , how can he? Because your content is absolutely amazing . All you need to do is to upload all video at same time. Thank You so much.

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

      PRAISE JESUS THANK U

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

      Thanks !!! for this vídeos

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

    Avoiding uncomfortable stares from peers is my priority in life.

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

      Absolutely😂😂😂

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

      However, if my peers looked like the narrator then I wouldn't mind! :)

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

      hahahahaahahah

    • @abdullahm..2303
      @abdullahm..2303 4 ปีที่แล้ว +1

      hahahahaha

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

      I think I will start a new trend called FYP = F*** Your Peer's I might not want them to understand my top secret code/program/App lol

  • @satonice7059
    @satonice7059 5 ปีที่แล้ว +508

    This is how knowledge should be spread.
    It feels professional, futuristic, fun and really soothing.
    Well structured and easy to understand. Great video :)

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

      Funny too :)

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

      Amazing content best in the world

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

      WHATS AN OBJECT

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

      Never thought I could be so attracted to an AI.. she's so smart ( :

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

      @@vedatporikli7417 an instance of a class - 1:33 and 3:15

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

    I love these Socratica videos. I'm so buried in long winded Python text books I don't even know which way is up or down. Socratica can take a topic like "Classes and Objects" and boil it down into a 10 minute video. Socratica is a great booster shot.

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

      you can't forever rely on youtube videos to learn useful and valuable skills

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

      @@luxraider5384 that's why you learn through multiple sources, which he was. Maybe you're better at taking in written information but heaps of people aren't which is where these videos help

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

      yeah true, but you cannot overlook the importance of books too. Maybe the videos help you to understand the books in depth. But it's is the books which have a lot of information than any of videos. The videos are just the tip of the iceberg, even assuming a specific topic.

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

      ​@@luxraider5384 sure you can.

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

    Your videos are truly in a class by themselves. The info is clearly and unambiguously presented.

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

    As a slowly aging C designer, these are one of the most fun Python tutorials I've come across so far. The puns, the dry humor and the obvious love for science and SF by whoever the scenario writers are is just a bonus. Nice work!

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

      We're so glad you're enjoying them! We have so much fun making our videos. 💜🦉

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

      what does dry humour and SF mean?

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

      SF => Science Fiction @@yash1152

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

    "I finally saw The Matrix today. It was the best documentary I've ever seen." Dying right now.

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

      LuL

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

    Your lessons are amazing. You are helping many people especially aspiring developers from Africa. Cheers from Kenya

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

      @@tomwilliam7299 ill trade you my citizenship if you have a good one haha

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

      😂😂😂

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

    Welcome to Socratica! You can see our entire Python Playlist here: bit.ly/PythonSocratica
    Subscribe to see all our new videos! bit.ly/SocraticaSubscribe

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

      If I could date you, I would be happy.

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

      @@Mantikone what kind of comment is this oof

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

      I love classes with you, would you like to have a diner together ?

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

      superb practice make human 😀

  • @kevinfang4362
    @kevinfang4362 7 ปีที่แล้ว +423

    the only dam video on youtube that actually explains classes and instances, thank u

  • @chemdah
    @chemdah 7 ปีที่แล้ว +189

    Dave Bowman and Frank Poole were astonauts on Discovery One in the movie Space Odyssey.

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

      Thanks for The so called Easter Eggs

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

      Oh, thanks... Those two names sounded so familiar... lol

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

      Arthur c Clarke is a science fiction writer and visionary. I'm a nobody, hi.

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

      I was looking for this exact comment, thank you Rob

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

      Another great documentary

  • @Socratica
    @Socratica  5 ปีที่แล้ว +18

    We're glad you've found us! You can subscribe to Socratica here: bit.ly/SocraticaSubscribe
    To help us make videos faster, you can become our Patron! www.patreon.com/socratica

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

      I have a classes with an instance full of love for u 😍💕

  • @akartaltepe
    @akartaltepe 7 ปีที่แล้ว +203

    Excellent as always. Thank you for making these great videos. They are even more helpful than you might think.

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

      They are helpful in a new way.

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

    I've watched a lot of programming videos and this is by far the highest quality series I've found. Thanks a lot and keep up the good work!

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

    This is the new world way of explaining! I love it!! You would think that you are more distracted by the method of teaching, but it consumes your attention and really works! Thanks so much for this creativity and implementation of what we all have seen in films, this time it applies to all of us

  • @CarolinaNaka
    @CarolinaNaka 7 ปีที่แล้ว +75

    Thank you very much! I've seen many tutorials about classes in Python and this one is one of the most helpful for me. Also I like your humor :) Can't wait for new Python lessons.

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

    I've been butting my head against the wall on classes for a while now, I have watched at least a dozen videos, read the python standard library. I've been able to "make it work" but it wasn't until i watched this and saw it stripped down to nothing but a "pass" command that i started to get it. I stayed up for 3 hours last night experimenting, and its thanks to you. You are a wonderful teacher.

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

    oh my god sometimes I just love youtube, I feel blessed to be able to see so much effort and creativity packed into one video full of knowledge . Thank you, thank you, thank you :D

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

    These videos are very helpful. They are informative but not boring, attention grabbing but not filled with fluff, and they hold just enough clever humor to spice up the presentation (0:40 "I finally saw the Matrix today. It was the best documentary I've ever seen." or the DocString for your user class 7:19 - """A member of FriendFace. For now we are only storing their name and birthday. But soon we will store an uncomfortable amount of user information""" - absolutely priceless!!!) Subscribed!

  • @saeedbaig4249
    @saeedbaig4249 7 ปีที่แล้ว +315

    "Classes are a fundamental tool in any respectable programming language."
    Cough,cough cough

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

      +Saeed Baig haha I what you did there. ;-)

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

      Hence, C++ exists.

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

      I don't it.

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

      Python jealou

    • @ko-Daegu
      @ko-Daegu 6 ปีที่แล้ว +6

      Saeed Baig
      In OOP not all programming languages ...
      That‘s a big no no ...huge mistake and wrong info

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

    I love it when correct naming conventions are encouraged 🤩!

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

    "Even if you are writing code only for yourself, it is a good habit to write a doc string. You may have to use a Class years after you first wrote it. A few seconds of typing is worth hours of sanity down the line."
    Absolutely brilliant way of emphasizing how important comments and doc strings are in code. Never assume you will remember what you wrote or why you wrote it.

  • @fiendsgaming7589
    @fiendsgaming7589 5 ปีที่แล้ว +13

    Explained most important things in 10 mins, which what others can't do in 1 hour

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

    Most of these 'theatrical' instructional videos are just distracting, but you folks have a really good 'formula'. Keep up the good work.

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

    I just randomly found this channel, and this is the coolest, most creative way of teaching I have ever seen. It makes me feel like I am some kind of commander, and I am being briefed an important message by an AI named Socratica. Thank you, Socratica, for making these videos.

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

      Welcome aboard, Commander! Glad you've joined us. 💜🦉

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

    The only video I have ever found that explains classes so that I can understand. Really love these videos thank you

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

    the first TH-cam video I ever saw with "EXCELLENCE" in way of teaching 😍😍😍 mam, thank you 😋

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

    How did I just stumble on this. What a fantastic series! Thank you so much for the work you've clearly put into this!

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

    We're halfway there. We still need your help! Support Socratica Python Kickstarter: bit.ly/PythonKickstarter

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

    Support what you love! Socratica has a Kickstarter to make more Python: bit.ly/PythonKickstarter

  • @theronsturgess257
    @theronsturgess257 7 ปีที่แล้ว +12

    Nice 2001: A Space Odessy references! "It's full of stars!" I'm learning to code and these videos are great. Thank you for making these!

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

      especially amusing since her voice is very "robotic", like HAL9000s :P

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

      @@MicroageHD Should we trust her.

  • @srikarreddy7085
    @srikarreddy7085 7 ปีที่แล้ว +14

    You have excellent creativity skills....Initially i was shocked to know that your channel has only 96k followers which i feel is low....You have know idea how many people who want to learn python would be gratefull after finding your channel...Hats off to your skills...Your video reminded me of assassins creed video...I think you should try something in mainstream game development if u havent already...anyways best of luck and thank you

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

      "only 96k" -.- really

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

    Classes n instances were explained well..every coding channel need to go back to basics

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

    Not even a minute into the video and I'm already sold. Great work!

  • @bhaiyyu
    @bhaiyyu 7 ปีที่แล้ว +130

    " lets create a second user. We will call this second user, creatively, user2 " :P

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

      I couldn't ever guess that name. Socratica is best in creativity....

  • @pojntfxlegacy611
    @pojntfxlegacy611 7 ปีที่แล้ว +28

    Looove the video style and explanation!

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

    My doubt got cleared in 1.5 mins.
    I've checked in every TH-cam channel that I rely on to study. I've only subscribed to channels that can clarify my confusions. And unfortunately no other channel cleared what I wanted, because they didn't even mention it. But you did.
    You're one refined channel.

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

    ONE OF THE BEST PYTHON TUTORIAL OUT THERE...

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

    Excellent channel and video. It's a bit cringy, yet insightful. There's some humour to it, yet the lady looks completely serious. The effects and style of the video seem overstreched, yet the content is very easy to understand. I don't know how you came up with this idea, but you nailed it, Socratica.

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

    I love the production value and dramatic tones of this and I am sure your other videos. Your content is great and I will be sure to share. Your hardwork is very appreciated. Thank you

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

    I have learnt about class before but I have to watch this video because of your classic approach. Thank you very much.

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

    Hi Socratica! Hope you are keeping safe! Really wish to see some new videos from you during these quarantine times!

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

    I LOVE you Socratica team! The fact this channel is what it is makes me love humans (and machines) even more :D
    Can you please make a video on super() and class inheritance?
    THANK YOU

  • @stoicfloor
    @stoicfloor 7 ปีที่แล้ว +11

    I was just started to learn Python and this comes in handy! Thank you:)

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

    coolest, darkest, most robotic yet human friendly programming tutorials on the internet

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

    I like the vibes of this video. It gave me the feeling of learning my rookie lessons with a commander in the Python War I.

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

    Very nice speaking voice, tone, screen automated visuals, style, and speed of speaking. "Voice" is not the only criteria to me, but it is somewhat "huge". I like the way that the words are spoken fast enough, but they are not spoken "too fast", as I have seen some do, and while people may "know their stuff", programming-wise, it can be yet another thing to have the gift of teaching and presentation, as well as the blessing of tone fluctuations and very clear, crisp English accentuation, too boot. Watching this particular video (as well as others) and following along is made to be almost sort of 'fun', i.e. toning down the (mild) frustration, or self-impatience of learning something new while turning up the joy of it.
    The thoughtful and careful clarifications, the method, the tempo, and video technology that are incorporated, result in great synergy. In other words! "Great job, be encouraged, and keep up the good work!". I prefer this video over most any other I remember seeing (of all teaching presentation videos, or perhaps I should say 'this series', so that it does not sound like I am preferring this video above all of your other videos. This is a good "instance", but I like the overall "class", that I see in all of them. :-) (pun intended)

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

      Definitely agree with you. She's very clear even to a non native English speaker like me, because everything is just perfect. Plus, the serious/semi-robotic style puncutated by occasional bursts of humour is very enjoyable

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

    Came to learn Python! Fell in Love!!

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

    I finally understood classes...
    This channel will never be old

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

    1) Every value in Python is an object.
    2) Every object is an instance of a class.
    3) Every name in Python is a variable. This includes function names and class names. Function definitions and class definitions are just forms of assignment statement.
    4) Since functions and classes are themselves just values you can put in a variable, that makes them objects, which must themselves be instances of classes.
    (To be continued.)

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

    "And we will do so , in a CLASSy way."
    O no

  • @888snuffy
    @888snuffy 7 ปีที่แล้ว +3

    Best youtube channel for sure!

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

    From all of the rest of python videos Socratica does a really good Job explaining Python.

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

    I wish my Python programming classes were this interesting and engaging.
    Well done.

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

    "I WANT TO GATHER AS MUCH DATA AS POSSIBLE FROM USERS " LMAO THAT KILLED ME

  • @anneamy7051
    @anneamy7051 7 ปีที่แล้ว +46

    when I reach 10million dollars my startup that time I am invest 1 million. dollar for your work ...I'm sure that day come in future ..i love your work and passion helping and sharing knowledge ....

    • @Socratica
      @Socratica  7 ปีที่แล้ว +15

      Thank you so much for your kind message! We are rooting for your success!! :)

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

      Hire me while you are at it please.

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

      can i help?

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

      you can donate them on patreion a smaller amount of money

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

      How goes your progress?

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

    Finally someone that teach without derailing and non necessary nonsense. Thank you.

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

    Truly in a class by itself, I just can't stop watching these videos... I've learnt so much from them! Thank you!

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

    Damn, you're entertaining and educational all at the same time. Thanks a lot for the Videos, I was about stuck to C++, now just Python all the way from [Se] to [Web].

  • @pilote111
    @pilote111 5 ปีที่แล้ว +20

    Ok am I the only one how come from C++, JAVA, C#, etc , and was like " but, you didn't define first_name and last_name in your class!🤨 "

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

      no private or public either, I feel uncomfortable!

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

      I'm glad I'm not the only one!

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

      it`s super strange, i don`t liked

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

      That is indeed a weird and not very common thing to do in Python. You normally define all your instance variables in the __init__ function. But yes, you can do it in Python....

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

      I've been working with C++ for years and it wasn't the same for me; when I first seen that I was like wow; that's pretty cool you can add a member variable to a class after the class has been created. I thought that was pretty cool. However I did watch a couple of other videos about Python and the core features of its language and what I got from them was that just about everything in Python in a sense is a run time object. Under the hood there are 4 basic data types, int, float and string not counting Boolean such as True and False. Once you create an instance of these at the local or global level you can not change them like you can in other languages. So if you have a variable as such: x = 10 in the global space x will always = 10 and you can not change it, this isn't the same for members. But basically everything you create or declare in Python under the hood is in a general sense a shared pointer object. Everything is created on the heap, there is no stack although you can create a stack object or structure with classes but Python doesn't have any notion of Stack or Variable Storage Specifier such as in C++ with automatic, static etc. I've only been learning Python now for about the past week and I'm catching on very fast. I'm starting to really like the language. The underlying nature of Python and being that it is a Scripting Language is that it is also a Dynamic Language. Everything you create in Python you can use Python's built-ins and some of their libraries to query the underlying pointer or memory address as well as the byte code of any and all Python objects.

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

    I feel like learning a lot from you than my professors! This futuristic atmosphere while explaining things classes and objects felt like I was learning things quicker than expected. Great work!

  • @1980cantrell
    @1980cantrell 5 ปีที่แล้ว

    Finally an actual educated person on you tube. thank you for this video and all the rest you may do.

  • @qwerasdfhjkio
    @qwerasdfhjkio 5 ปีที่แล้ว +41

    Socratica:"Classes are fondamntal tools for any respectable programming language"
    C: Am I a joke to you?

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

      All Functional, Imperative, and Logical languages: Are we a joke to you?

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

      Yep

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

      She said _respectable_ . 😝

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

    Great videos, very helpful. Could you please scroll the code up a little bit when it gets to the end of the screen in future videos. I pause the videos to code along, and the TH-cam UI obstructs the view of the code at the bottom when paused.

    • @Socratica
      @Socratica  7 ปีที่แล้ว +11

      Thank you so much for letting us know! We see what you mean. We will try to avoid this in the future! As a workaround, looks like the TH-cam framing doesn't interfere with the video if you go into fullscreen mode. Oh, TH-cam.

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

    Wow, this is fantastic and beats any python learning on youtube. I love this stuff.

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

    I have been teaching myself python for about a month(it is also my first programming language so I had to start with the very basics). A week ago I started classes and two days ago I gave up. I just didn't get what they ARE. Luckily this video was suggested to me here on TH-cam and I feel ready to give it another shot. Thank you.

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

    So after you create a class, you can add any number of variables to an instance of that class? Coming from Java, that just seems weird.

    • @HK-sw3vi
      @HK-sw3vi 6 ปีที่แล้ว +1

      coming from c++, that just seems weird.

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

      coming from no language, makes sense to me.

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

      Coming from C, it's something completely new

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

      python is a dynamic language. you also don't have to declare variables before using them and python does a lot of data coercion for you too

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

      coming from mars , maybe i should go back to mars

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

    Data's better half ;-)

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

    "In fact, most other programming languages are quite jealous of Python for its elegance and simplicity." Hahaha! That knocked my socks off from the get-go!

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

    This is the best introduction to classes so far. The other videos are slightly more advanced and thus more difficult to follow. Thanks :)

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

    OMG, how I love...
    PIE-THON!

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

    . 2:43 , 2:47 , 3:13...
    . How was a space inserted automatically between the first and last name??!

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

      It's because a comma is used here for concatenation. if it were a "+" instead of "," you would have to add space.

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

    It sounds so cool when you say "RUN"

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

    the authority and efficiency of our teacher is good.

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

    Where is the next video then? 7:50

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

    I keep thinking of me watching a game live instead of a python tutorial lol

  • @w.stanjames9175
    @w.stanjames9175 4 ปีที่แล้ว

    This is perhaps what being taught by a Vulcan would be like. But it's very clear and concise - thanks!

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

    These are the best, and easiest videos to learn python from on youtube.

  • @kshitizshrestha7119
    @kshitizshrestha7119 7 ปีที่แล้ว +12

    Why isn't this channel growing much??

    • @Socratica
      @Socratica  7 ปีที่แล้ว +8

      We need your help to grow!! The best thing you could do would be to share our videos on Twitter, Reddit, Facebook, etc. so more people will learn about us.
      We really appreciate it. We want to stay in business to make more of these videos for you! :)

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

      Thank you so much for your help! It really makes a difference! :)

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

      Xitiz Shrestha advertisement speaks in this 21st century .

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

      One of the main reasons comes to be audience. Socratica's videos are excellent, but there are far less programmers than there are people actually on youtube. Though the field is always growing and getting people engaged in what most view as a very dry subject into showing how it empowers the end user, and how useful programming is very important.

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

      Ken M so programmers aren't people?)

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

    Aren't "fields" really called "attributes"? I've searched the web for like 30 mins and that's pretty much the conclusion I've drawn

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

      Yes they are the same. Attributes are variables in a method, this is also what a field is.

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

      An attribute can be a field or a method (a variable or function defined in the class, respectively). Standard terminology varies depending on the language, but that's what I learned with Java.

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

      Gallade6349 see previous comment

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

      iLoveTurtlesHaha But you aren't wrong: usually "attribute" refers to a field. Rarely will a method be referred to as an attribute. I think the user.age() is a good example of a method which could be considered an attribute, especially since it returns a value derived from fields defined in the class. Whereas a method that deletes a field or changes it's value, for example, would be unlikely to be called an attribute of a class.

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

    I just bumped into a TH-cam channel that can truly help an Earthling like me with level 0 programming ability. Well, it seems that I found a classy way of learning Python.

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

    I'm so glad I've found you

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

    "...because reasons" very dry humor over here.

  • @moose43h
    @moose43h 7 ปีที่แล้ว +31

    for reassons 😂😂

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

    Personally, I have recently started a job role where I needed to learn lots of SQL and Python and I have had only previous minimal exposure to both. I've been picking it up very quickly, and already written a few of my own scripts/improved previously written scripts thanks to Socratica. The trick is just to keep writing code and solidifying the topics discussed in these videos. Even if something I did before was a small manual task, I'm finding ways to automate those tasks using Python and it's really not been that difficult to wrap my head around. It's also just a lot of fun and python is so widely supported for just about anything you'd want to write code for. The opportunities are endless!
    I love the way they approach these more advanced topics without going too far into the weeds on technicalities. Knowing the ins and outs of how python functionally works and interacts at a high level is very important for more advanced scripts, but this is just essential information and exactly what you need to start coding - optimizing code and knowing all the little tricks to save lines in your code comes after and I highly suggest anyone unsure of where to start to literally just start with ANYTHING.
    Would love to see a Socratica video on Python Async and Await (unless I've just missed it).
    Keep up the awesome videos, you all are great!

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

    The presentation is lit.. Enjoyed the way it was laid out... Its fun

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

    ASMR + TUTORIAL = this video.

  • @lukewarmwater802
    @lukewarmwater802 7 ปีที่แล้ว +11

    Although the lessons are good, I get scared by her presentation, as if I might be inducted to a learn programming for evil intentions.

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

      LMAO, I think it's cool AF and so do most people watching (as you can see from the comments) :P

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

      I think the evil intention is you can tell others: "Learn to code" :)

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

    I am just a beginner and this video helped me more than my teacher. Thanks!

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

    Articulation, cadence, tone, presentation. Excellent. Very C&C sounding :)

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

    Thank you, I have understood, that "self" is an attribute for the variable of the class object, and that the same variable-
    name can be used, without self, if you are not interested to the "class". Therefore how and why to use "self". Thanks again.

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

    Fun animation timed with what's said. Clear explanations and she doesn't do a too simple or complex attempt at explaining. Very good tutorial quality

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

    After seeing a lot of videos on python, objects n classes I wasn’t getting all my answers.. every video wasn’t satiating my doubts . Now man after watching this I really feel this is it.. ultimate vdo, most perfect n crystal clear explanation.No extra talk. So happy. It’s an art of teaching.

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

      Thank you so much for your kind review! We're so glad you are finding our videos helpful. 💜🦉

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

    Direct, clear, and to the point. Kept my attention throughout the whole video. Other videos ramble way too much or try to make it funny, etc.

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

    That's BRILLIANT content, thank you very much indeed !

  • @morethanpixls
    @morethanpixls 7 ปีที่แล้ว

    These videos are the best tutorials on youtube.

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

    youre amazing, clear, concise, comprehensive

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

    Great tutorial, plain and straight