Classes and Objects with Python - Part 2 (Python Tutorial #10)

  Рет қаралды 567,657

CS Dojo

CS Dojo

Күн бұрын

Пікірлер: 501
@muhammadarith685
@muhammadarith685 6 жыл бұрын
coding is fun ......with Mr CS dojo.....
@rahulbhargava4999
@rahulbhargava4999 6 жыл бұрын
very true
@anshulanand02
@anshulanand02 3 жыл бұрын
@emaad hakeem yeah lol
@Lluviso
@Lluviso 6 жыл бұрын
i've seen all ur python videos, you're really an amazing teacher.
@ianprado1488
@ianprado1488 4 жыл бұрын
Name: Karen Personality: Aggressive
@swallowedinthesea11
@swallowedinthesea11 4 жыл бұрын
isCallingPolice: True
@amoskan5923
@amoskan5923 4 жыл бұрын
sippingMocha: True
@zzzfjord2688
@zzzfjord2688 4 жыл бұрын
isKidsListeningToKidzbop = True
@Itsdrax911
@Itsdrax911 4 жыл бұрын
askedformanager = True
@atlantic_love
@atlantic_love 4 жыл бұрын
@@Itsdrax911 Ian, intelligence: lacking
@lolface6940
@lolface6940 6 жыл бұрын
print("Thank you")
@zubairqureshi7541
@zubairqureshi7541 4 жыл бұрын
While True: Print("Ty")
@invisibleinsociety
@invisibleinsociety 3 жыл бұрын
@@zubairqureshi7541 ty ty ty ty ty ty ty ty ty ty........
@roilandofermante9827
@roilandofermante9827 3 жыл бұрын
Richard
@mingxing3033
@mingxing3033 2 жыл бұрын
Cout
@peterikediugwu632
@peterikediugwu632 2 жыл бұрын
@@mingxing3033 what on God's green earth is that abomination
@charlene2459
@charlene2459 2 жыл бұрын
Dear CS Dojo, Thank you so much for these. I'm a newcomer in coding, and as an adult, I'm embracing every error I make as an opportunity to learn new things and correct existing faults. I hope to become a computational linguist after my future masters, and I'm determined to get there. Keep up the amazing content
@561Aloha
@561Aloha Жыл бұрын
wishing you the best
@anytutorialforyou
@anytutorialforyou 6 жыл бұрын
I have been learning so much from you and the androud app SoloLearn! 2 weeks ago I couldn't print "Hello World" to save my life, now I am reading sensors and finding it much easier to actually understand and learn from other's codes. Anything I don't get in SoloLearn, you help me understand in the video, and if I don't understand what you're explaining, SoloLearn has my back! Please never end these types of videos, you are an amazing teacher and obviously have a big heart to leave your job and help others such as myself. Keep on keeping on, I look forward to learning much more from you!!
@rahultirkey7950
@rahultirkey7950 5 жыл бұрын
You just saved my life. You're like an angle who came to help me. Keep making more videos to inspire more people who loves to code but don't know where to start.
@atlantic_love
@atlantic_love 4 жыл бұрын
Is your name Geo Metry, by chance?
@urjitchakraborty5813
@urjitchakraborty5813 4 жыл бұрын
Steven and Kristy LMAO
@hitlarrajbhandari
@hitlarrajbhandari 6 жыл бұрын
*Y.O.U A.R.E A.M.A.Z.I.N.G* _keeponcoding_
@rahulbhargava4999
@rahulbhargava4999 6 жыл бұрын
yeah.....great teacher
@complexitytr9098
@complexitytr9098 6 жыл бұрын
wOWW hitlar said!!!! There must be something in his video
@MrPallav2009
@MrPallav2009 5 жыл бұрын
#keeponcoding
@thomaswainwright5280
@thomaswainwright5280 5 жыл бұрын
Your name is hitler
@mahabuggeinani
@mahabuggeinani 4 жыл бұрын
Yeah
@vanochristian7639
@vanochristian7639 5 жыл бұрын
Because of you, now I know to leave four spaces in def and other stuff before I got an error and did not know what to do THX
@daaalouuullll9708
@daaalouuullll9708 4 жыл бұрын
This is the best coding channel i have ever encountered.Thank you so much
@FoxFireImr
@FoxFireImr 6 жыл бұрын
You’re fantastic! Love the way you explain it.
@honeypatel9283
@honeypatel9283 4 жыл бұрын
" Best tutor ever ❤ ". Thank you
@keifer7813
@keifer7813 2 жыл бұрын
Best series on youtube on this topic! I'm happy you brought up this point at 6:39 about changing the constructor. I was asking myself why you didn't just do it that way on the part 1 video. Glad I watched this to clear that up. Thanks!
@adarkdwarf5950
@adarkdwarf5950 4 жыл бұрын
these videos are the best tutorials I can find on KZbin, so keep up the great work.
@imasha7315
@imasha7315 5 жыл бұрын
You’re such a legend thank u so much
@martinkaspar5095
@martinkaspar5095 5 жыл бұрын
hello dear CS Dojo wow - a really overwhelming tutorial - very helpful and in all things Python. I like the sidenotes that you give to the idea and concepts that are used in JAVA. This is very interesting. I really like this ideas and your "CS-Dojo approach". Well your stuff is among of the very best python-ressources on the whole net. One question though can you put togehter the most important infos into a cheatsheet - a Summarizing Cheat Sheet to download: that would be fantastic. Above all: dear CS Doyo - you did a fantastic job explaining these concepts of Python programming! I am learning to code and your introduction helps me to fully grasp the ideas. keep up the great work - it rocks!! best regards martin
@cybertaopodcast
@cybertaopodcast 6 жыл бұрын
Hi CS Dojo, Please continue with your series of Python, it is really great to learn this programme with you. Can't wait for the next video.
@atlantic_love
@atlantic_love 4 жыл бұрын
If you paid attention, he said said he wasn't. Not in OOP anyway.
@hyesungoh410
@hyesungoh410 2 жыл бұрын
One of the best tutorials I've ever used!
@ButterBeanCW
@ButterBeanCW 2 жыл бұрын
This really cleared up the difference between methods and attributes for me. It’s interesting that you can create an object and the set new attributes on that object with the “.” and then the new one. However, you can also call a method in a class in reference to an object constructed on that class and interact with attributes to do a function. Cool!
@marqwithers
@marqwithers 6 жыл бұрын
Thank you for making these awesome instructional videos. I've learned more here in a just few days than any programming class I've taken previously. Please keep going with this!
@luckyjames
@luckyjames 2 жыл бұрын
I love the way you teach, it seems you had a good teacher nice and thank you
@namashaggarwal7430
@namashaggarwal7430 6 жыл бұрын
East or West,CS Dojo is the Best
@iamnathank
@iamnathank 5 жыл бұрын
Wow! Thank you for such a clear and concise tutorial. All your videos have been incredibly helpful so far. Cheers!
@burlofreak
@burlofreak 5 жыл бұрын
THANK YOU YK I have come so far so quickly with you!
@noblesse2041
@noblesse2041 3 жыл бұрын
Hi CS Dojo: i have a question ❔ what is the benefit of this two functions in the video: def sit_down(self): self.is_sitting=True def stand_up(self): self.is_sitting=False and thank for your time
@combatjeyj6234
@combatjeyj6234 4 жыл бұрын
Ma man can explain what my teacher has been trying to teach us in class for the last 3 months in 10 minutes
@missionsee1217
@missionsee1217 4 жыл бұрын
learning python from these tutorials .... feeling good
@vincemarenger7122
@vincemarenger7122 4 жыл бұрын
I was using Dictionaries in Dictionaries instead. It looked like garbage. Now it's way cleaner and easier to understand. THANK YOU
@subramanianchenniappan4059
@subramanianchenniappan4059 6 жыл бұрын
I am a java developer. your videos are really good. to the point . got the gist of python :-)
@christianjay9898
@christianjay9898 6 жыл бұрын
Hey Cs Dojo your tutorial is full of wonderful stuff, I learned about Object Oriented Programming with python also I can apply this on other Programming language because you taught smooth like professional speaker.
@msp5-010
@msp5-010 Жыл бұрын
A good video to learn Python. I wish the other videos were similar to this video.
@vaclemor102
@vaclemor102 6 жыл бұрын
i actually just got started learning python today like 2 hours ago and its very easy so far
@Vforvin
@Vforvin 6 жыл бұрын
could you help me please i want learn python also could tell me what are you doing where i start
@swallowedinthesea11
@swallowedinthesea11 6 жыл бұрын
This helped me: doc.lagout.org/programmation/python/Python%20for%20Kids_%20A%20Playful%20Introduction%20to%20Programming%20%5BBriggs%202012-12-22%5D.pdf
@OsadeTOOT
@OsadeTOOT 6 жыл бұрын
i spent hours on understanding the basics, it's important to understand them not just use them
@rahulsriram6295
@rahulsriram6295 5 жыл бұрын
@@Vforvin w3schools is the best mate!
@Vforvin
@Vforvin 5 жыл бұрын
@@rahulsriram6295 Thanks
@doniyorabduvokhidov1862
@doniyorabduvokhidov1862 5 жыл бұрын
You made me happy with day i was always thinking with the idea of why we need __init__(self)
@jeremydelvalle5992
@jeremydelvalle5992 6 жыл бұрын
It seems like this is the final tutorial of the series. Any suggestions as to what exactly I should learn next? I was thinking on jumping into a framework like Django and/or Flask, but I'm not sure if I should start learning that with only the basics shown in these tutorials.
@CSDojo
@CSDojo 6 жыл бұрын
I'd suggest Lynda.com or Pluralsight after this. I'm thinking of starting a new series with Django or Flask soon, too!
@christophergjoeen4617
@christophergjoeen4617 6 жыл бұрын
Good job!
@gagansandhu1210
@gagansandhu1210 6 жыл бұрын
finished entire series .understood each and every function
@storaman12
@storaman12 4 жыл бұрын
EXCELLENT. Very friendly and clear explanation.
@akhilreddy5933
@akhilreddy5933 6 жыл бұрын
These videos have been so helpful! Please continue making it.
@kieutrungtran1549
@kieutrungtran1549 Жыл бұрын
you make Classes and Objects so easy to understand
@tokpengeng1818
@tokpengeng1818 3 жыл бұрын
Hi may i know what is the reason of creating method, def sit_down(self):and def stand_up(self):which never been used in your demo?
@ruthwaiganjo2550
@ruthwaiganjo2550 6 жыл бұрын
Hi, thank you for the course. I am really understanding Python. A few questions. 1. If I change the name of the attribute is_sitting in the constructor, does it affect the sit_down and stand_up methods? 2. How do you use the sit_down and stand_up methods? How do they relate to the is_sitting attribute and what is the importance of those methods? 3. How come we have a new attribute robot_owned which has not been defined anywhere?
@ruthwaiganjo2550
@ruthwaiganjo2550 6 жыл бұрын
So I've rewatched the part one video where you state that Robot() is a default constructor. But in part 2 we already had a constructor in the person class...does that mean you can always add attributes to your objects using the dot method irregardless of whether the constructor is the default of one that you have defined?
@iseeflowers
@iseeflowers 6 жыл бұрын
Yes. I’m confused with robot_owned which came out of nowhere. It was never mentioned in classes and it just became an object?
@Ugufugu95
@Ugufugu95 3 жыл бұрын
hey guys, I just stumbled upon this tutorial now and I have the same issue as you - it is puzzling to me why the console didn't throw an error after assigning to this undefined variable a value (a whole robot object) have you maybe during those years developed the knowlegde to explain that? :)
@rockguitarist8907
@rockguitarist8907 2 жыл бұрын
Lol i was looking for someone to comment on this to see what answer is. We didn’t set up robot_owned as a method or attribute anywhere, so I don’t get how Python recognizes it without throwing an error. Guess I’ll keep learning and it will come to me.
@TusharGaurav
@TusharGaurav 5 жыл бұрын
You are my CS teacher!
@rsingh48044
@rsingh48044 2 жыл бұрын
Great job explaining with the animations and graphics.
@jayatidutta1941
@jayatidutta1941 4 жыл бұрын
Thank you Sir, for your excellent explanation in simple words
@TruthEthan
@TruthEthan 2 жыл бұрын
I used your technique in robotics and it's so helpful! Thank you!
@peihaochan4840
@peihaochan4840 3 жыл бұрын
CS Dojo has cracked the code on how to teach!
@ellieliu1680
@ellieliu1680 4 жыл бұрын
you explained the function very well...make it easy for me to keep learning python, many thanks
@royaltuxedo5749
@royaltuxedo5749 5 жыл бұрын
your videos are really good and make OOP easier to understand
@jaichenchlani
@jaichenchlani 6 жыл бұрын
Hey YK - your videos are very helpful. What software do you use to create these ( like the whiteboard and drawing and stuff)?
@jaroslavmarhivka3321
@jaroslavmarhivka3321 5 жыл бұрын
You are amazing at explaining things! Keep it up!
@mohdsajeer2147
@mohdsajeer2147 4 жыл бұрын
You have explained very well, Thanks CS Dojo
@pradeepkumar-wo7zj
@pradeepkumar-wo7zj 6 жыл бұрын
which software do you use for this interactive black boxes to make us understand these programs??
@shibinraja
@shibinraja 5 жыл бұрын
Every time I see your video I will be like thats easy , i can do that. Thank you so much Dojo
@biggee1
@biggee1 4 жыл бұрын
Thank you CS Dojo
@mangneokhongsai3257
@mangneokhongsai3257 4 жыл бұрын
i have difficulty in passing object as argument in your video session 6:52 how can i passed the object of robot to the Person constructor so that i can get which robot belongs to which person...
@aungthiha5416
@aungthiha5416 4 жыл бұрын
It willl be like this: class People: #Construtor def __init__(self, pname, page): self.name = pname self.age = page #.......... def Information(self): print("He is " + self.name + " and " + self.age) p1 = People("Aung Thiha Tun", " 19 years old.") p2 = People("Nandar Aye", " 22 years old.") class Student: def __init__(self, n, na, per, iss, p): self.name = n self.nationality = na self.personality = per self.is_setting = iss self.people_owned = p def is_sitting(self): self.is_setting = True def standing(self): self.is_setting = False s1 = Student("Aung Thiha Tun", "Myanmar", "Loyalty", True, p1) s2 = Student("Nandar Aye", "China", "Aggressive", False, p2) s2.people_owned.Information()
@Sureshezhumalai
@Sureshezhumalai 6 жыл бұрын
Thanks for making learning python enjoyable. Waiting for the next videos in this series :)
@hasnainakbar8621
@hasnainakbar8621 6 жыл бұрын
Amazing Big Bro Continue
@joeyzalman8254
@joeyzalman8254 4 жыл бұрын
Your explanation is amazing
@true911m
@true911m 5 жыл бұрын
I've enjoyed your tutorials so far. They're to the point and share some nice extra tips without being over people's heads. Practically speaking, though, I'd like to know about handling IO in Python, maybe in a desktop app, command-line app and a web app, if they're (probably) handled differently. I can look it up, but it seems like a pretty basic need in any app. :) Keep up the great work and thanks for considering my request.
@neevpatel3670
@neevpatel3670 2 жыл бұрын
print(“ Thank you!”)
@georgesmith3022
@georgesmith3022 6 жыл бұрын
if you want to learn oop learn java or c#. the fact that you can add properties on demand after you instantiate an object, is error-prone and happens only in javascript and python
@ajithtolroy5441
@ajithtolroy5441 6 жыл бұрын
Your classes are amazing brother :)
@gurmaansidhu8515
@gurmaansidhu8515 3 жыл бұрын
can anyone explain me the last part from 7:47. I got the concept but some confusion in the last code.
@jiakai7254
@jiakai7254 Жыл бұрын
Hi i have a question: can a method (belonging to person class) change the attributes of robot? note to cs dojo: it might be clearer if u say that a robot has an "introduce_self" method rather than function since methods are called on an object, and functions can be called on its own.
@tonyleung2442
@tonyleung2442 Жыл бұрын
Thanks! 20 mins saves me from doing 1 hour data camp + reading book. LOL
@imtiazshahed944
@imtiazshahed944 5 жыл бұрын
Hi Dojo, you are great. I am new to python and would like to know the best site to practice python. Much appreciated.
@abhinavlenkala
@abhinavlenkala 3 жыл бұрын
Use VSCODE or Jupiter Notebook
@hingsing1
@hingsing1 2 жыл бұрын
please do more python!! Thank you for this video
@espedale
@espedale 3 жыл бұрын
Great instruction. Is it considered to be poor form to add attributes to a Class outside of the __init__? It seems like it would be confusing to collaborators as they would want to see all attributes of a Class by simply looking at the consolidated attributes in the original def of the Class. Adding new attributes (like robot ownership) outside of "def Class:" structure seems disjointed and sloppy.
@giovannisguitar1756
@giovannisguitar1756 3 жыл бұрын
Very Helpfull video, thank you !
@kittoh_
@kittoh_ 3 жыл бұрын
This is awesome! What software did you use in this presentation?
@manas_sewatkar3010
@manas_sewatkar3010 6 жыл бұрын
Hey man.... Thanks for all the videos... Helped me a lot to begin with python... Sure would like to see more of these here..
@hrutamsabale7050
@hrutamsabale7050 6 жыл бұрын
Hey YK,I wanted you to explain more about 'Constructor'.Also if you would be explaining about 'Object based programming' and 'Object oriented programming' and the difference between them that will be nice of you.And Keep It Up.
@kaceytingey3291
@kaceytingey3291 3 жыл бұрын
This was a lot of help ! Thanks
@quanduong8917
@quanduong8917 6 жыл бұрын
These videos are very helpful man. Keep doing well. Tks so much.
@kimberlyalaba3730
@kimberlyalaba3730 2 жыл бұрын
Thank you!! More exampless of coding plsss
@QAInsights
@QAInsights 5 жыл бұрын
Please let me know what software you use to demonstrate the classes concept? :) Thanks!
@iitnakanpur..
@iitnakanpur.. 5 жыл бұрын
Jupyter notebook
@lutfidwimulya949
@lutfidwimulya949 6 жыл бұрын
Keep spreading and sharing knowledge and helping out other people. God bless you Mr. YK -Dojogang
@DrWho2008t101
@DrWho2008t101 4 жыл бұрын
Thank you for the video, great work. Appreciate your work.
@AnVlogs
@AnVlogs 6 жыл бұрын
Please MORE MORE MORE PYTHON VIDEO. I need to keep learning because of AL.
@gqigg
@gqigg 6 жыл бұрын
hey , how to print alice and her status? , you skip that part!
@nitricdx
@nitricdx 4 жыл бұрын
create a function in the class and it to print
@arjunk5959
@arjunk5959 4 жыл бұрын
call the function stand_up to know her status
@simbarashempofu283
@simbarashempofu283 4 жыл бұрын
@@arjunk5959 like how
@Talktech101
@Talktech101 4 жыл бұрын
=Print(Always grateful for you)
@bhupinderbhattarai244
@bhupinderbhattarai244 6 жыл бұрын
you should have 1 million subs or more.
@GopalSinghR1
@GopalSinghR1 6 жыл бұрын
Awesome explanation
@Saad-hi1zz
@Saad-hi1zz 4 жыл бұрын
You forgot to mention 1 more Data Type at 2:21, They are floats example: 0.12322342, -12.213213123413 etc.
@barbabillios6180
@barbabillios6180 6 жыл бұрын
6:45 : you say that we can enter the attribute by using an attribute r and self.robot_owned = r but what should I right in p1 = Person("Alice", "aggresive", False, ? ) ? I mean when I write r1 or "r1" it says AttributeError: 'Person' object has no attribute 'r' ... please answer me and forgive me for my poor English. Best of luck!
@AJ-et3vf
@AJ-et3vf 2 жыл бұрын
Awesome video! Thank you!
@BluespotKneeClinic
@BluespotKneeClinic Жыл бұрын
You've gave me hope and stopped me from dropping out of university.
@arunrmyt
@arunrmyt 6 жыл бұрын
Brilliantly explained. I think I can learn it in a day now. Could you have not written boolean's in this tutorial would have made reduced the confusion of why we are nt using the boolean function. If not could you please help me understand. Cheers
@binhuaqin118
@binhuaqin118 6 жыл бұрын
Hi Dojo, what's the blackboard like software you are using for the tutorial? Thank you very much for the work.
@kaberitripathy4340
@kaberitripathy4340 6 жыл бұрын
i was waiting for this one eagerly
@ysf5171
@ysf5171 4 жыл бұрын
Very helpful and good video, thanks for your effort. Please create another video for classes magic methods
@phoenixofthegraveyard
@phoenixofthegraveyard 3 жыл бұрын
This is an incredibly helpful video!!!! :D
@anshulpant9270
@anshulpant9270 4 жыл бұрын
Dojo you are rock..
@mohammadikram687
@mohammadikram687 6 жыл бұрын
You simply amazing at teaching.
@muhammadarith685
@muhammadarith685 6 жыл бұрын
hey,cs dojo.....enjoying this great videos......... you are a good teacher and good looking.... having fun....
@jojomythe
@jojomythe 2 жыл бұрын
Love your videos!!! Thank you!!
@vladhorobchuk5325
@vladhorobchuk5325 5 жыл бұрын
It's just awesome! So easy to understand. Thanks a lot for the Tutorial
@atlantic_love
@atlantic_love 4 жыл бұрын
What did it really teach you, though?
@champfisk5613
@champfisk5613 6 жыл бұрын
So if you can definitely attributes in line without going back to the class, wouldn't that make it hard to troubleshoot? It looks as if it's not defined anywhere
@poojith87
@poojith87 3 жыл бұрын
What happened to sit_down and Stand_up function outputs? were they simply created?
@litmeup420
@litmeup420 6 жыл бұрын
hi dojo, Please, can you advise if after completing this series I am eligible for Intro to data visualization course? Considering python is my first language and also I am a beginner.
Using Boolean in Python (Python Tutorial #11)
8:14
CS Dojo
Рет қаралды 307 М.
Classes and Objects with Python - Part 1 (Python Tutorial #9)
11:36
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Python for Beginners - Learn Coding with Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 19 МЛН
Introduction To Lists In Python (Python Tutorial #4)
9:55
CS Dojo
Рет қаралды 1,2 МЛН
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,5 МЛН
Advent of Code 2024 | Days 18-25 Live-coding
Errichto Algorithms
Рет қаралды 90
Introduction to For Loops in Python (Python Tutorial #5)
10:22
CS Dojo
Рет қаралды 1,6 МЛН
Python Tutorial: if __name__ == '__main__'
8:43
Corey Schafer
Рет қаралды 2 МЛН
Python OOP Tutorial 1: Classes and Instances
15:24
Corey Schafer
Рет қаралды 4,5 МЛН