Learn Classes in Python in 4 Minutes
HTML-код
- Опубликовано: 18 июл 2019
- Learn Classes in Python in 4 Minutes
I attempt to teach you how to use classes inPython in less than 4 minutes.
"Clean Code Friday"
If you want to receive one short email from me every week, where I go through a few of the most useful things I have explored and discovered this week. Things like; favourite apps, articles, podcasts, books, coding tips and tricks. Then feel free to join kalletech.com/clean-code-friday/
CONTACT: contact@kalletech.com
Follow me on:
TWITCH: / kallehallden
INSTAGRAM: / kallehallden
TWITTER: / kallehallden
GITHUB: github.com/kallehallden
--------------------------------------------------------------------------------------------------------
GEAR:
COMPUTER - amzn.to/2GX54SU
CAMERA - amzn.to/2Nr09L
MAIN LENS - amzn.to/2tzgJzp
PERFECT DRONE - amzn.to/2NqkQa1
Secondary Lens - amzn.to/2UcTA1e
Secondary Lens - amzn.to/2Ebp5SV
Zoom Lens - amzn.to/2U3UH3j
MONITOR - amzn.to/2U6hF9Z
website:
kallehallden.tech/
If anyone is wondering what "self" means, it's just an instance reference. Basically its a variable that refers to the "user" as he or she is being built. Say for example you built two users, Dan and Sally. Dan is a different instance of the Person Class than Sally which python knows because of self.
Thank you!!!
Hmmm that makes sense but I can’t visualize it in my mind. I need to think on it more. This is what coding is. Looking over the same concept with new eyes after more experiences until you understand
Makes sense but I still don't understand, coding is simply lovely!
@@tonysamosa1717 very true
👏👏👏👏
You have no idea how many videos and books i've gone through to understand classes. Your video was what made it clicked. Thank you!!!
Books are the worst way to learn python
Same
Same here
Same here... I love it ... straight to the point
Same here dude
Literally the best video about classes. Never learned this much info in just less that 4 minutes.
I'm not a programmer, but was interested in a quick summary of what classes were, and this was perfect for me. Excellent explanation.
Thank you sooooooo much!
I was looking everywhere and couldn't find a good tutorial on classes until now.
This was brilliant: short, direct, cristal clear.
Thank you again!
I would definitely love for this to become a series!
Like these short straight to the point easy videos explaining everything, maybe you could do it for other languages as well like Java?
Either way, keep up the great work Kalle!
Thank you, I'm super glad to hear that!
Yeah I was planning on doing this with Java first just because I feel like classes in Java are really great for explaining how the concept of objects/classes work in programming. So maybe I will do some Java as well :)
@@Hallden_ Thanks Kalle! I'm so many of us would benefit from it!
Great format, really appreciate it. This way you can get some brief coding input even on busy days. Thanks a lot!
fireship
i've been struggling with classes for so long but idk what it was ab this video but now it all makes sense omg
This is literally the best explanation on yt. Detailed yet concise.
no its not
@@Rafael-oq9vu point us to a better one then?
very helpful! I have been recently having a bunch a obstacles in my programming journey and this has been a real help
This is THE BEST class explanation for "initializing" understanding. THANK YOU!
Crystal clear, great job! I wanted to find out about this for so long
Thanks man. I really appreciate you taking the time to explain it so simply yet effectively. Keep up.
Short, effective, and to the point. This helped me understand it in simple terms. Thank you so much!
What an amazing video! Beautifully explained in such a short period of time! Thank you!
Absolutely brilliant video, I was completely clueless before this! Please make more!
Excellent, concise and precise presentation. Straight to the point. Thanks man 👍
Thank you so much for starting this series. I really enjoy short videos and this is awesome to begin with.
Thank you, I'm glad you liked it! :)
Thank you! Really enjoyed this format.
This was a great, quick summary. I am working to master the use of classes in my code, and I have watched many videos and tutorials. This pairs well with them. Great work.
Holy shit ! You have now solved the problem of all the students of our school
i think im in love, thx for the short useful video!
fast and precise, exactly what I needed
Your explanation is finally one I understand and have been helped by. Thank you so much!
Best explanation of the class object I've ever seen or read for someone new to coding like me. Thanks.
Truly amazing, I was going through material on classes and thought dam this is gonna take some time to learn. Found your video and it all made sense instantly.
You explained something that most make so complicated, and you made it so simple and to the point. Wow, it was so easy to understand. Thank you very much for your quick and insightful video!
This is was super good. Please continue this. You just got a new sub !
Nice! Thank you! :)
Thanks! Your video made it easier for me to grasp the concept.
Everyone:
You can't learn python OOP in 4 minutes!
This dude:
Hold my beer
Yeah man
You're right.
It's true, you can't learn oop (in py) in 4 mins. He didn't mention a lot of things
@@Gladiator-wy5qb he isn't
@@noah77 Don't u understand a joke 😁
@@Gladiator-wy5qb I assumed it wasn't a joke 🤷♂️
THANKS SO MUCH!
I come from PHP programming and it just made me crazy how hard it is to find information to switch over to python fast, FINALLY I FOUND THIS, thanks!
This was great such a good basic explanation. Thanks Kalle !
Mycket informativt, tack. Trevlig stil på dina videor förresten.
spend 5 hrs on this topic with minimal progress. This 4 min video brought it it all together. THANKS!
Your a legend for this one man! Instant Sub!
Man! That is really useful info. And I like the format of being short and straight to the point 👍🏼
Thank you, that's exactly what I wanted, I think I will do more videos like this "4 minute tutorials" on different programming concepts
@@Hallden_ Sound like a good strategy to go with!
clear concept in short time, this shows how how good you are in programming.
Great concise definition!
Simple, fast and high quality. Thanks⭐
Very well explained, thank you!!!
You did it in 4 minutes , i got it what classes are , thanks a lot !
simple logical explanation, helped me a lot. thank you very much,
Thanks man. Very helpful.
Very nice, simple, fast and effective. Thanks!
This was a great explanation. Thank you.
You did very well! thank you!
Hej Kalle! Thank you for discussing classes and objects: the fundamentals of OOP. I like this 4 minutes series of videos you have in mind. Maybe consider discussing Python's data structures like arrays, list, tuple and dictionary. Would love to have a better grasp on those topics.
Okay that's a great idea! :)
Excellent review of Classes. Makes better sense now. Thanks.
This helped a lot! during my open book quiz - thank you!! Unfortunately, I'm considering a break from coding after this class is over... :(
This was exactly what I needed! Thanks
I'm new to programming and the idea of classes still kind of confuses me, but this really cleared things up for me. Thanks!
Great summary!
Well said: I really like your explanation here! I am taking an Intro to Python class and we are now leaning about Classes. Thanks for this!
Fantastic video! Thanks for the help.
That was so concisely presented.
I would say you did did this pretty well. This process makes more sense to me than it did before watching this video.
Explained it really well. Thanks mate.
Ur classes r easy 2 understand and awesome. Thank u 4 making this 💓
I watched other videos but got confused but you explained better than ever thank you and keep it up😉😊
Thanks this makes much more sense now!
Great stuff! Thank you, Kalle. Do more.
Thank you, glad you liked it, I will do more :)
Thanks A lot. I now understand what the heck a class is doing. I used to get confused between classes and functions because they look the same for a beginner but now I see the difference.
Awesome explanation. Makes perfect sense!
You teach great , really GREAT!!!!!!
Thanks! Great job❤️
I like the way you said to represent everyday objects in classes. I feel like that helped something click for me. 👍
Thank you so much sir. I'll soon have my python exam about this stuff. It's short, simple and understanding. You're pretty cool at that.
Short and informative! Keep it up!
That's what I was going for, so thank you you! :)
Excellent! Thanks!
This is perfect! Thank you!
Very well explained, thanks!
Now I understand this guy explain simpler and clearer than other RUclipsrs, it does mean he really understand truly everything.
Simple, yet effective.
Kudos to your brilliant teachings
In Python, self is a conventionally used parameter name that refers to the instance of a class. It represents the current object being manipulated or accessed within a class method.
Perfect video! Short, yet well explained, detailed an concise. And no annoying changes in the camera angle every other second, like a lot of youtubers do today. Wish more youtubers would go with this approach when making videos about programming. Thanks for teaching me something new!
Hey bro wanna learn python with me I'm still a beginner. I think it we be very usefull to me and to you if you're a beginner.
Amazing, helpful tutorial!
For some reason classes have not come easy to me but this video made me get it! Thank you!
Thanks! I understand it way better now :)
Perfectly Explained
Perfect. Thank you
Hey man, please explain creating iterators and decorators.
love this thanks!
well explained sir. Thank you
Really well explained!
Amazing explanation! Really helpful
Great video man!
Thanks, very helpful.
thanks for the advice and the lesson
Thanks man, very useful
This was brilliantly succinct
thank you man, i try to understand so much with books and you in 4 minutes do it for me.
Best video on classes ever.
The mini tutorials are a great idea, Kalle. I don't think you have to make them super short though. 😊 For example, in this video, it would be helpful to hear a little more about the dunder init method, and the convention of using "self" as a name for the object being created.
I'm looking forward to seeing more videos in this series. You have a great way of explaining things. 😊
Thank you!
And yeah I see what you mean, and inevitably when making a short video I will have to cut some stuff out which like you said would be great to have and that would fit into a longer video. What I think I will do is do short videos and explain very limited and specific areas or concepts but do it for lots and lots of concepts so the 'self' convention might be a video of it's own. So that's kind of the idea that I have in mind, but I really appreciate your feedback! It's awesome to hear your thoughts on positive and negative stuff so that I have more things in mind for my next videos which will then hopefully improve the videos that I make :)
@@Hallden_ The idea of dedicating short videos to concepts like self and dunder methods is even better than my original suggestion of including them in a longer video. 😊 And yes, I have no doubt you'll get better and better the more videos you make. Once you have an idea, you're very good of focusing and making it work. That's one of the things that make you inspiring. 😊
I took a python programming class and didn’t understand classes at all. After watching this video I understand it completely, thank you.
Thanks man, you're a legend!
this was amazing. thank you
Thank you sir. It was very informative
Thank you so much! This video was so usefull. Thanks!
Tq for your effort. Nice and punchy.
this is so easy tysmm!!