Object-oriented Programming (OOP) in Python (Easy to Understand Guide) #20

  Рет қаралды 210,065

Programiz

Programiz

Күн бұрын

Step by step video tutorials to learn Python for absolute beginners!
Object-oriented Programming is a programming paradigm based on the concept of creating classes and objects to solve a problem. In this video, we will learn about the fundamental concept of Object-Oriented Programming and how we can implement it in Python with the help of examples.
~
Run Python Online: www.programiz.com/python-prog...
Programs in this video: github.com/programiz/python-c...
Python Object Oriented Programming (text-based tutorial): www.programiz.com/python-prog...
Watch our videos and revise them with our Python App!
Download here for Android: bit.ly/learn-python-android
Download here for iOS: apple.co/3iPm6Sx
Timestamps:
0:00 Intro
0:21 Object-Oriented Programming
2:24 Python Classes and Objects
8:38 The __init__() Method
13:20 Example: Add Two Complex Numbers
16:55 Why Object-Oriented Programming?
17:36 Programming Task
Find Programiz elsewhere:
Facebook: / programiz
Instagram: / _programiz
LinkedIn: / programiz
Website: www.programiz.com
#python #learnprogramming #programiz #pythonoop #objectoriented

Пікірлер: 180
@programizstudios
@programizstudios 2 жыл бұрын
🔥Finding it Damn Hard to Understand Python? Learn to code-the right way-with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT! Try Programiz PRO for Free: bit.ly/interactive-py
@Wrennvy
@Wrennvy 3 жыл бұрын
class Triangle: def __init__(self, a, b, c): self.a = a self.b = b self.c = c def perimeter(self): p = [self.a, self.b, self.c] h = sum(p) return h t1 = Triangle(3, 4, 5) result = t1.perimeter() print(result)
@ravi2971
@ravi2971 3 жыл бұрын
the clearest and most well-explained video on classes on KZfaq! Keep up the good work man!
@cerealkurus
@cerealkurus 2 жыл бұрын
Trueeee
@bilkisabe1660
@bilkisabe1660 Жыл бұрын
Very true
@ndemazizou9866
@ndemazizou9866 Жыл бұрын
True
@anj6912
@anj6912 Ай бұрын
Totally agree!
@stephelisabeth3143
@stephelisabeth3143 3 жыл бұрын
In my Python class, it has been hard to understand what you might actually use a class for and how it would be applied. I assumed it had to do with organization but it was hard for me to come up with specific instances and my professor honestly hasn't demonstrated that for us. You made it obvious in two seconds and it will make doing my assignments easier going forward. Thank you for that.
@enzy6434
@enzy6434 2 жыл бұрын
I’ve watched Python tutorial videos from pretty much all content creators worth anything and this guy is by far the best overall at teaching concepts in a clear and understandable manner.
@serpentinefireball
@serpentinefireball 3 жыл бұрын
This is amazing! I watched quite a few tutorials on this topic before I found your video and none of them helped me understand the concept the way you did as a total beginner. Thank you!
@kawaiikina3618
@kawaiikina3618 2 жыл бұрын
Huge thanks to Programiz team! I can see you guys have devoted a lot of effort into this video. Your script is the most concrete, clearest and easiest to understand. The step by step guidance also lays out the logics clearly and allows beginners to succeed in the programming task later, which is rarely seen in other tutorials. You are great python teachers!
@dots223_
@dots223_ 2 жыл бұрын
Finally, a video that clearly explains classes. Thank you!
@HamzaAli-iy3ws
@HamzaAli-iy3ws 3 жыл бұрын
You are doing such a great work by helping us in learning python and with such an ease. Keep it up and wish you a great success!!!
@NaeemAhmed-sw9jc
@NaeemAhmed-sw9jc 2 жыл бұрын
One of the best tutorials. I also like that you actually added a task at the end to check if we really understand
@del_f_s_1051
@del_f_s_1051 Жыл бұрын
I am a python beginner learner. I watched a bunch of videos on KZfaq but couldn't understand the concept of OOP. This video is an absolute gem. Thank you sir, in just 18 mins every part covered in the video was crystal clear. God bless. 😊
@peterchin6759
@peterchin6759 2 жыл бұрын
Oh man!!!!!! The most concise explanation I have ever heard/ read. The only regret I had was that I couldn't discover your videos sooner.
@abhishekghosh5550
@abhishekghosh5550 2 жыл бұрын
hey i bought one course of a popular python instructor. couldn't understand that and came here. and got crystal clear man! this is incredible. and here, i was pulling my hair off as to where am i going wrong. Cheers.
@jeffnc
@jeffnc 3 жыл бұрын
Thank you this was very useful. I liked that you include an exercise at the end too, I feel I have a much better understanding now :)
@Buckybarnesfan22
@Buckybarnesfan22 2 жыл бұрын
A true master. I have watched your video many times. It is an extremely clear and concise way to teach OOP. Thank you!
@samiicosta
@samiicosta Жыл бұрын
I was reading the Python official tutorial, which is great. But this video made it SO MUCH clearer! Thank you for the lesson. Keep up the good work.
@tanvimutha4049
@tanvimutha4049 3 жыл бұрын
Very well explained! Thank you for great work.Can't wait for the upcoming videos.
@sumanhere99
@sumanhere99 3 жыл бұрын
I just love your way of teaching..it makes everything clear to me.
@sudhamjayanthi
@sudhamjayanthi 3 жыл бұрын
Love the website and tutorials! High-quality content 👌
@zainkhatri5030
@zainkhatri5030 3 жыл бұрын
i love you pundit, everytime i have struggle i come to you and you always execute. love from uzebekistan - jamal
@MrStarmat
@MrStarmat 2 жыл бұрын
very clear, thank you very much ! As a newbie as me, concrete examples with step by step explanation on python is very helpfull to get the concept of OOP.
@NARASIMHAM1002
@NARASIMHAM1002 3 жыл бұрын
Great work! Keep up the spirit and this channel will grow very soon.
@yashtiwari00008
@yashtiwari00008 3 жыл бұрын
This video cleared all my doubts, thank you so much, you taught very well
@LostHaven
@LostHaven 3 жыл бұрын
Very easy to follow, thanks for explaining!
@rashmihiremath191
@rashmihiremath191 Жыл бұрын
I am glad I came across your channel , you explain in a very simple way . Way to go , keep rocking
@tanmayparekh3371
@tanmayparekh3371 2 жыл бұрын
I have watched many videos but trust me this video is the best i have ever seen.
@blindhydra
@blindhydra 2 жыл бұрын
Great video! You are very skillful at teaching the information and progressing the difficulty, loved the video!! Thank you very much
@gabrielnino2892
@gabrielnino2892 3 жыл бұрын
This is so helpful! thank you!
@vishnug16
@vishnug16 2 жыл бұрын
You the awesome trainer for this course in youtube platform ,really you explained all the topics with theory and code. Keep going on
@SoSha_Tv
@SoSha_Tv 2 жыл бұрын
Thank you so so much for breaking Class down to be understandable. I am indeed grateful.
@forrestt1294
@forrestt1294 2 жыл бұрын
The Blueprint-House analog helped me. Your teaching employs common-sense. Common-sense isn't very common. This is the best Class/Object video on the net. Thank you for taking the time to make this video!
@riadasgupta2737
@riadasgupta2737 2 жыл бұрын
very simple and to the point... thanks for making the concept easier
@Sundowners971
@Sundowners971 Жыл бұрын
This guy is VERY helpful! Thank You!
@frankharrigan5368
@frankharrigan5368 2 жыл бұрын
Thank you so much for explaining OOP in such an easy to understand way. You've been a great help. I've subscribed to your channel.
@sainath2848
@sainath2848 3 жыл бұрын
Thank you... Now I got clarity on OOP
@Niko_Dola
@Niko_Dola Жыл бұрын
This is was the most useful tutorial for classes and objects , thank you!
@kaila-annguiste1472
@kaila-annguiste1472 2 жыл бұрын
so clear and easy to understand quick!
@kamalelbo5116
@kamalelbo5116 3 жыл бұрын
it's the best video explaining classes and OOP, good methodology and very good job,thanks
@John-eq5cd
@John-eq5cd 2 жыл бұрын
Very clear, well worth watching. Thank you
@thiernoba
@thiernoba 2 жыл бұрын
Well done. Very composed and well explained. I finally get it. This seemed like expert stuff for me for a long time, but not anymore. Don't change your tone because, In some other videos, the instructors act like they have to speak fast to come out as they know their stuff.
@kajalchandravanshi2456
@kajalchandravanshi2456 3 жыл бұрын
I found this very useful. Thankyou so much sir.😊😊 plzz keep uploading these kind of videos cause it will help a lot of students who are in search of crystal clear concepts with good examples.
@famijoku7631
@famijoku7631 2 жыл бұрын
thanks, I finally understood it now
@kyawswarthant708
@kyawswarthant708 3 жыл бұрын
I am your fan now! Regret that I should check this simplest version first : )Thanks A Lot
@hemre1913
@hemre1913 3 жыл бұрын
your web site and videos are so explanatory!! thank you :)
@fadilyassin4597
@fadilyassin4597 3 жыл бұрын
well done very good I like the way you explained sttributes as variables and methods as functions it is important to define words first because it removes the confusion of names thanks again
@vengalrao5772
@vengalrao5772 2 жыл бұрын
I got understand after many days 🙏❤️...but love this 💙💙💙
@independent7212
@independent7212 3 жыл бұрын
Keep it up sir... your way of expression and methods are amazing
@gbolagadeolajide8595
@gbolagadeolajide8595 Жыл бұрын
This was an excellent video. It explained creation of objects so well. Thank you so much
@abusufian7848
@abusufian7848 3 жыл бұрын
wonderful!!! Love from Bangladesh, Brother!!!
@JH-KU
@JH-KU 2 жыл бұрын
Thank you. very well organized and explained. Well done.
@lemikanadeola7442
@lemikanadeola7442 2 жыл бұрын
this is the best video i have learnt from, and besides... your smile helps understand it better. thanks a lot for the explanation. keep the good work🥰.
@pakjirapaint1490
@pakjirapaint1490 3 жыл бұрын
Very clear! Thank you so much sir
@ashisdas5376
@ashisdas5376 3 жыл бұрын
I was waiting for it
@kumarprmshvm565
@kumarprmshvm565 3 жыл бұрын
Your Videos are awesome, Man. Maybe it is not know to many.. I strongly believe you will succeed in u r mission
@danielkiriggwajjo27
@danielkiriggwajjo27 2 жыл бұрын
thanks buddy it was fantastic
@sharanchandrasekaran8399
@sharanchandrasekaran8399 5 ай бұрын
Great video, thank you
@sarahooshmand1830
@sarahooshmand1830 2 жыл бұрын
Thank you, this video is so helpful and easy to understand
@nethravathi2845
@nethravathi2845 2 жыл бұрын
The concept is explained very clearly.. 😊
@PerrySullivan
@PerrySullivan Жыл бұрын
Legit tysm. Thank god I started taking notes on videos outside of my class. Watched this vid like several weeks ago and I wrote down code about the "Complex" number problem and little did I know, a similar problem like that would appear on my midterm (that I'm taking rn at the time of this comment).
@user-if1im4xm5v
@user-if1im4xm5v 7 ай бұрын
Thanks for making this video, and also for the mobile app.
@TheTenorChannel
@TheTenorChannel 2 жыл бұрын
Great video. Wish you the best & success!!
@duncanmwangi3468
@duncanmwangi3468 2 жыл бұрын
Thank you Sir ,You are a good teacher clearly explained
@Huyautomation2901
@Huyautomation2901 7 ай бұрын
I've spent at least 3 days to figure out what the hell are "classes and object" in Python.Wow God blessed me found your video.That's very clear now I totally understand them.Thank you so much ! You got my like button and share
@Nancivlog
@Nancivlog 2 жыл бұрын
very clear... i hve subscribed keep up the good work
@user-gq1ui3gc1c
@user-gq1ui3gc1c 3 ай бұрын
A lot of people must have said thank you but I will like to say it again. Thank you!
@mathewschibesa9793
@mathewschibesa9793 Жыл бұрын
Great Video bro!!!!
@sanyamjain4777
@sanyamjain4777 3 жыл бұрын
The way you explain ❤️
@sucharithaanumula1849
@sucharithaanumula1849 2 жыл бұрын
Awesome explanation
@edulel
@edulel 2 жыл бұрын
Excellent and very clear explanation of classes in Python!!!! I will suggest using different names of variables inside and outside of the class (result) to better understand the examples. Thank you!!!
@zubaidahsabah7948
@zubaidahsabah7948 Жыл бұрын
very well explained
@derikaem8021
@derikaem8021 2 жыл бұрын
great explanation! is there a way to have several init functions, so that you can construct an object with a variable number of attributes?
@adireddy4710
@adireddy4710 2 жыл бұрын
Just Awesome and super interestingly genuine way of teaching...So thankful to u brother..also please post videos on data science or AI related too if u can ..thank you
@seshasai7348
@seshasai7348 2 жыл бұрын
Hi bro. Actually I was learning python since 1 month. Since one month what I learnt I never felt confused but today I was confused particularly this concept. Anyway I really thank full your concepts which you brought on screen to make help us.
@haraldurkarlsson1147
@haraldurkarlsson1147 2 жыл бұрын
Very clear videos. These concepts can be quite confusing (because of all the code jargon that programmers use).
@laoying20
@laoying20 3 жыл бұрын
Thanks it was very good.
@w62720wtf
@w62720wtf 3 жыл бұрын
Great video!
@riyashrestha3483
@riyashrestha3483 3 жыл бұрын
It is here!!!
@creativecodz
@creativecodz 3 жыл бұрын
superb classes sir. thanks for making such amazing python class videos. one request sir if possible please make videos on real-time projects with explanations for beginners. so that we will be more confident in programming. once again thanks a million sir
@pavaraliyanage93
@pavaraliyanage93 2 жыл бұрын
thank you, sir interesting and very helpful for me
@ginch8300
@ginch8300 3 жыл бұрын
I love your videos. Do you have any tips to getting even better at Python for someone like me who could be described as an intermediate python programmer. I want to really advance to the next level but I feel somewhat stuck on what I could be doing with what I currently know about Python.
@professorgrass3953
@professorgrass3953 Жыл бұрын
Thank you
@sandipansarkar9211
@sandipansarkar9211 3 жыл бұрын
great explanation
@seanhoran5014
@seanhoran5014 Жыл бұрын
I'm lost on this one, great course thus far but somehow went to another level without any defining on how you got there with this one.
@mbnjdevils
@mbnjdevils 3 жыл бұрын
Great video and lesson on this topic. I am a new follower. Where can we post questions?
@alexikamran7039
@alexikamran7039 2 жыл бұрын
Awesome
@jabezs.1913
@jabezs.1913 Жыл бұрын
It was a wonderful one😜😜
@saurabhvaishya3896
@saurabhvaishya3896 3 жыл бұрын
I AM ON JUST 3RD MIN OF THE VIDEO BUT STILL, IT FEELS LIKE BEST OF ALL
@mdiftekhar6876
@mdiftekhar6876 2 жыл бұрын
class triangle: def __init__(self, a, b, c): self.a = a self.b = b self.c = c def add(self): return self.a + self.b + self.c tri1=triangle(3,4,5) print(tri1.add()) tri2=triangle(7,8,9) print(tri2.add()) tri3=triangle(2,3,6) print(tri3.add())
@hawaiiankickboxer
@hawaiiankickboxer 2 жыл бұрын
FINALLY!!! ....An Indian I can understand. Awesome video!
@yakubuabubakar376
@yakubuabubakar376 8 ай бұрын
Good video
@nafisatareq2815
@nafisatareq2815 2 жыл бұрын
Osm definition
@sarahpuri808
@sarahpuri808 3 жыл бұрын
Does your app have lessons from your videos or how does it work
@ramonashiah9636
@ramonashiah9636 2 жыл бұрын
I am still confused on the [15:27] line 14, the way we called the add method...
@pakistan3965
@pakistan3965 Жыл бұрын
Sir! what is self and why we use itm
@rajwalavalkar7208
@rajwalavalkar7208 3 жыл бұрын
couta>>b>>c; sir, what is equivalent python code for this c++ code? plz reply!
@arshs6894
@arshs6894 3 жыл бұрын
sir please also make videos on data structure and algo with python
@DigitalAcademyOnline
@DigitalAcademyOnline 3 жыл бұрын
Learning Python is something you would like to get in your skills, but you do not know where to start? This NEW channel will help you out leaning Python Programming from scratch - for complete Beginners, Intermediate and Advanced Levels
@0009ntr
@0009ntr 2 жыл бұрын
Hello, Where is the code for triangle program? No link in the description
@ashishkarsh5817
@ashishkarsh5817 2 жыл бұрын
Where to get the solutions??? Of the task you gave
@harikrishna3055
@harikrishna3055 2 жыл бұрын
n1,n2 are two objects is not allowed arguments sir output has a error pls help me
Object Oriented Programming (OOP) in Python
46:37
Traversy Media
Рет қаралды 278 М.
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 23 МЛН
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 38 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 14 МЛН
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,3 МЛН
Python Functions (The Only Guide You'll Need) #12
17:20
Programiz
Рет қаралды 562 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 55 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 281 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
Ditch your Favorite Programming Paradigm
6:08
Code Persist
Рет қаралды 173 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 609 М.
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН