ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
ต่อไป
เล่นอัตโนมัติ
Classes and Objects with Python - Part 2 (Python Tutorial #10)CS Dojo
มุมมอง 560K
25 nooby Python habits you need to ditchmCoding
มุมมอง 1.7M
Object Oriented Programming (OOP) In Python - Beginner Crash CoursePatrick Loeber
มุมมอง 339K
谁说鲜虾鱼板面没有虾的,这不是有了吗? #funny#搞笑#生活东东一家
มุมมอง 360K
เหนื่อยหน่อยนะ (SOMEONE LIKE ME) - GEMINI Prod. by URBOYTJ [ OFFICIAL MV ]RISER MUSIC
มุมมอง 494K
ผมขังคน 7 คนในบ้านพูลวิลล่า ! ( โคตรอันตราย )Ananped
มุมมอง 708K
Python 3's __init__(), self, Class and Instance Objects Explained ConciselyLive Python
มุมมอง 276K
How I Would Learn Python FAST in 2024 (if I could start over)Thu Vu data analytics
มุมมอง 214K
Object Oriented Programming (OOP) in C++ CoursefreeCodeCamp.org
มุมมอง 2.5M
Python Object Oriented Programming (OOP) - For BeginnersTech With Tim
มุมมอง 3.3M
Python 101: Learn the 5 Must-Know ConceptsTech With Tim
มุมมอง 1.1M
Functions vs Classes: When to Use Which and Why?ArjanCodes
มุมมอง 151K
5 Useful F-String Tricks In PythonIndently
มุมมอง 295K
Python OOP Tutorial 1: Classes and InstancesCorey Schafer
มุมมอง 4.4M
พระบิดา ส่ง “ธิดาลุยไฟ” ว่าที่นายกฯ ใหม่ “แพทองธาร” ต้องเผชิญ “วิบาก” อะไร ? #ถกไม่เถียงterodigital
มุมมอง 736K
ไฮไลท์ฟุตบอลพรีเมียร์ลีก 2024/25 สัปดาห์ที่ 1 : อิปสวิช ทาวน์ พบ ลิเวอร์พูลTrueVisionsOfficial
มุมมอง 1.4M
Lady Gaga, Bruno Mars - Die With A Smile (Official Music Video)LadyGagaVEVO
มุมมอง 13M
ฐานทัพเรือเรียมของกัมพูชา ทำไมไทยต้องระวัง? #bbcthaiBBC News ไทย
มุมมอง 35K
Exclusive! น้องลิกก้า&น้องโรร่า มาแล้ว!! [cc] แดนแพทตี้ SS2 | EP.48 |DanPattie
มุมมอง 604K
Mcdonald vs KFC #น้องนะโมkidsplayKids Play
มุมมอง 201K
🍌Hiwwhee Games EP.1 | เปิดงานหิ้วหวีกีฬาสีใครจะอยู่สีไหนบ้างHiwwhee Official
มุมมอง 461K
"Strive not to be a success, but rather to be of value." - Albert Einstein
The value you're providing is immense. THANK YOU!
thx man, really good quote
Hii
Don't take his name, cause CS Dojois from Japan.
Remember who made Hiroshima's history possible.
I agree with you, although my English is weak, I understood because he was very simple in conveying information
@@tariqalotaibi4852 me too i can understand veryyyy easily rather than others english
What took me 3 days and countless resources to semi-understand, you broke down in 2 videos for me. Absolute hero
why is he not recoginized like other youtubers, his works are always so perfect, clear and easy to understand even the complex topics
Whoever disliked this video truly confuses me, it is a well put together video that is super helpful
A pure tutorial from scratch... Well done bro
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
don’t worry they’re are a lot of AI that automatically dislike videos corresponding to the amount of views so yea
ovi some absolute douche. youtubers like this one are great
@@skaito Yeah? Seems a little farfetched.
Love those robots - spent over an hour reading a textbook on classes and objects. Was completely lost. The robots illustration is a great idea.
could u explain this to me???bcz i dont get this..
@@sidrafarooq2064
Hi I'm not sure if you still need this, please let me know if I can try to help
You just taught me everything I learned in a 3 hour class
:)
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
Thank you so much! Just had the biggest “Oh shit, I get this now!” moment.
SAME!!
i was about to give up programming and then he explained simply but with clarity!
Same here! Thank you very much for your explanation.
You not alone! #MeToo!
the same oooh god he's good at explanation
Same, I've researched classes and OOP a bunch before and now I finally get it all. Thanks so much for the video!
Thank you. Your video is clear, informative, straight to the point, and encouraging to me. Keep posting new one. I am enthusiastically look forward.
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 😀😀
How'd it go?
yeah man, how'd it go?
It was long time ago🙈..
But it was very good👌👌👌
glad you made it
Thank you.. And good luck to you
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.
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 .
The way that you introduce the need for the '__init__' method is the best I have seen so far. Thank you :)
same. been tryna figure out what the hell that is
@@user-jd3gf5xw1xsamee
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 (:
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.
bro pls stop reading books tutorials are more powerful
6 Years Later, Still Immensely Helpful. Thankful for this gem of a video. Clear, concise, and beginner-friendly.
Initially did not understand that ‘self’ like ‘this’ in Java has a special meaning in Python and passes the object name. Great job.
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.
@@yahoobolt big fax
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!
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.
Damn its been 5 years, you might wanna start revising for that test you got there
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!
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
So glad I found this channel 🙂. Classes have been the most challenging for me so far in my python learning. Thanks!
Great one! Keep up the great work man!
@killmoo h3h3 what about...?
@killmoo I haven't seen it in a while but I probably remember it.
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
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
Thank you for finding my glasses so that I could see the consept of classes!
Simple and tasty walkthrough! No question asked.
Print, my name is
Print, my name is
Print, my name is
The real slim shady
chicka chika Errrr ERROR
Please stand up
🤣🤣🤣
BRo THIS VIDEO WAS UPLOADED ON MY 18th BIRTHDAY
print( 'No one cares what your name is, you jabroni!' )
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
You are the best tutor. No one else can teach like you.
You have a talent, my friend. Thank you for putting in so much thought on how to convey this subject.
Thanks CS Dojo☺☺
This is the best beginner class tutorial ive ever seen
I can't believe this is free on TH-cam - thank you!!!
Thank youuu, understanding classes has been really challenging for me and this is starting to help :) great examples
Oh, I've missed you so much, CS Dojo!
I even started to learn Javascript in the meantime! ^__^
u did not recieve a single like in 2 years so I liked ur comment
:>
@@cryslin2.066 Thx. It's very kind of you.
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
You are the best person to teach this object and class. Thanks cs dojo. Love from india 🇮🇳.
i Had also love to see you creating some important but moderately short programs while using OOP.
thanks for the video, been waiting for it
Love the simple and clean tutorial man. Thanks for providing these lessons for free.
This is by far the best explanation I have come across.
print("you are amazing!")
you are amazing
@@krenze1164 oh shit the program broke. it forgot the last index
Great Job, well done sir...Keep up the great work!!!
You explained classes more succintly and clearly that anyone else in 11 minutes
After long years, I understand what is classes and objects. Great Job! Thank you so much!
I came to this video to learn what I "learned" in a course of someone else.
Thanks for this
your way of teaching is far more better than what i am being taught on udemy.MAN YOU ARE GENIUS
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
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
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()'
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()
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?
Self is inbuilt by python and it gets recognised as the object that has been created so it gets ignored
CSdojo the savior for students from Canada
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...
Hiii my name is dinesh i am your biggest fan You are super
From Pied Píper.
Why your thumbnail includes code from Pycharm but your tutorial is on jupyter I'm triggert
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 :')
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!
Thank you !.. FInally I understood what the hell are "Classes" !!! :)
can explain more about __init__ function?
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.
@@skalex055 Is that comparable to an constructor?
@@derfrueder5975 yes, it will run when the class is created.
Try to understand OOPS concept
it helps you to understand it
this video is still saving lives, four years later
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!
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?
Hai cs dojo what happens if we doesn't use the word self.
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
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. :)
For some reason I just couldn't wrap my head around classes but this video just made them click. Thank you so much!
isn't this just a function with extra steps?
Robin Kovačić that’s what confuses me, what’s the purpose of it
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
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..
th-cam.com/video/vlf4Pn9nMug/w-d-xo.html
Same lol
Hands down the best explanation of OOP I've seen. Thank you!
i am truly satisfied by the way u say "robot" , btw it was a well made and concise video , it was really useful
Could you put English subtitles in the videos,please?.I am Just learning english, and it would be so easier to watch the videos.
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!
I was about to ask the same thing.
Turn on captions from options.
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.
friend plz make a QnA video i have many questions for you
What are your questions? :)
Can we make our own packages in Python and import in our program?
Yes plz tell I was also having this confusion?
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!')
No,My Question is can i create my own packages
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!
You are reaching more people than there are in an entire university. Thankyou
how did you "#" multiple lines at one time?
@Berke Icel works! thx!
Or you can do this ' ' ' hello hey ' ' '
I don't trust chinese in programming...
I'm just joking I love you chinese man
Yes they spread covid.
@@horrorstoriestolisteninthe2354 bruh, have some shame
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
Anyone is not understand able about the above one then just see his previous video about classes then watch this that worked for me :)
Extremely clear and informative video. I cannot understand why anyone would dislike this vid
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
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.
dude I have been watching python videos everywhere but yours are so much easier to understand!
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.
Bro, you dont know how much of a help your videos have become, we are so thankful and hoping you the best you deserve!
This is the best video so far to understand class and Object
I finally found a youtube channel that explains everything properly! Thank you very much for the great explanation.
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?
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!)
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.
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
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.
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.
Dude I've taken multiple course and watched so many videos trying to understand this and I never did until now, kudos!!
jeez u made it look as simple as it could get man nicely done
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.
This is very well explained, even if i'm not a native english speaker i understood this course easely.
Such a wonderful tutorial never gets old. It helps anyone who wants to know Python classes. Many thanks for this!
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.
clear english and content, better than other youtubers
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 ♥
I am a beginner and I like your videos a lot. Your tutorials help me to easily understand and execute the concepts.
very helpful, ive been struggling with OOP and just classes in general. This was exactly the information i was looking for. GOD BLESS