Object Oriented Programming with Python - Full Course for Beginners

  Рет қаралды 1,934,142

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

Пікірлер: 1 200
@jimshapedcoding
@jimshapedcoding 3 жыл бұрын
Thanks a lot for posting this, FCC! ❤️
@mahirrahman4253
@mahirrahman4253 3 жыл бұрын
You are an amazing teacher, thankyou for teaching me flask your market app really helped me 🙏🏻
@flammabletfm3405
@flammabletfm3405 3 жыл бұрын
You are the amazing one.Thanks for the great course.
@thetagang6854
@thetagang6854 3 жыл бұрын
No, thank YOU!
@jimshapedcoding
@jimshapedcoding 3 жыл бұрын
@@mahirrahman4253 Thanks a lot!
@jimshapedcoding
@jimshapedcoding 3 жыл бұрын
@@flammabletfm3405 You are welcome!!
@DennisChaves
@DennisChaves 3 жыл бұрын
I'm only 20 minutes in and already several concepts that were blurry before are now crystal clear to me. Excellent video!
@hgm8337
@hgm8337 2 жыл бұрын
plus the benefit of being taught by Count Dracula's nephew
@joseluizdurigon8893
@joseluizdurigon8893 2 жыл бұрын
@@hgm8337 noooo way hahahahahahahaha
@k.o.o.p.a.
@k.o.o.p.a. 2 жыл бұрын
@@hgm8337 😭😭
@cjhoffmn
@cjhoffmn 2 жыл бұрын
No joke - he's explained things in the first 20 mins that I've never heard anywhere else - yet they are true fundamentals that are really helpful to learn!
@KofyImages
@KofyImages 2 жыл бұрын
Less than 10 minutes into the tutorial and I understand what the class is. Some of these free tutorials teach better than actual courses we pay money for
@shyamsundarraghu4667
@shyamsundarraghu4667 11 ай бұрын
00:04 Understanding object oriented programming is important for software developers. 07:57 Creating a method to calculate the total price of items 23:21 Understanding constructors and best practices in classes 31:11 Learned about constructor and working with different attributes 45:44 Using a for loop, we can print the names of all instances 53:38 Read CSV file and instantiate objects with class method. 1:09:32 Create a separate class named 'Phone' that inherits from the 'Item' class 1:17:02 Inheritance allows creating child classes that inherit attributes and methods from parent classes. 1:31:54 Create read-only attributes in Python using the property decorator 1:39:20 By adding double underscores to attribute names, access to those attributes is prevented outside of the class. 1:54:40 Encapsulation and abstraction principles are applied in object-oriented programming. 2:03:06 Inheritance allows code reuse across classes
@muntaface
@muntaface 2 жыл бұрын
This guy is amazing. He has taught me Selenium, Classes and I'm sure many more things in the future. Keep up the good work Jim, you're a beast!
@sancrosanct5070
@sancrosanct5070 2 жыл бұрын
1. In the run validations to arguments part, if you aren't getting an error when you use an integer as the name, type in assert type(name) == str. This will not accept anything other than an integer as the name. 2. Make sure you have no spaces between the list in the items.CSV file. Its a minor thing but gave me a headache since I couldn't get past that for a while. Then do the normal int(item.get()) then it works fine. Finally most of the issues I encountered were as a result of not looking at the code long enough. If you encounter a problem, make sure to re watch the part where he DOS it and make sure you got it correct. This happened to me at the Len part and a few others. Finally if you encounter s problem not stated here, then copy the error and paste it in your browser. This shows a stackoverflow page first where you can figure out what's wrong. Hope this helps you and you don't have to go through the headache I did when solving those lol
@alexjokyn5116
@alexjokyn5116 2 жыл бұрын
you are a legend
@yashnirmal3895
@yashnirmal3895 2 жыл бұрын
yeahhhh was facing the same headache...thank u very much!!!!
@oanr2475
@oanr2475 2 жыл бұрын
true saviour
@zorodielirido
@zorodielirido 2 жыл бұрын
#2 gave me such a headache as well. i think i would still be sitting here trying to figure it out if i didn't see your comment. thanks!
@IurijZagorulko
@IurijZagorulko 2 жыл бұрын
Man thx a lot!!!
@SuperTenja
@SuperTenja 2 жыл бұрын
Just completed the whole video and this is hands down the best object oriented programming course I've ever come across. I've been trying to understand what exactly OOP is all these days by reading blogs and going through different tutorials. Nothing gave me as much clarity as this video did. Thanks a lot for the great work and for giving this out for free!
@calfolkionized
@calfolkionized 3 жыл бұрын
I find myself especially loving the structure of this OOP tutorial, it comes from a Funtional programming aspect and gradually lead you into OOP with examples, as oppose to other tutorials where they directly introduce you to concepts like inheritence/settters etc.. This makes my understanding of OOP much more clearer and structred. Big thanks to FCC and the lecturer!
@pointer333
@pointer333 2 жыл бұрын
More better than my comment!
@hhbadarin
@hhbadarin 3 жыл бұрын
Only today and after watching this tutorial I understand "self" in python!
@nkundukozerajanvier162
@nkundukozerajanvier162 3 жыл бұрын
the same here
@vuyilemagwaza3236
@vuyilemagwaza3236 3 жыл бұрын
He makes so easy to understand
@kapilrakh
@kapilrakh 3 жыл бұрын
you are a "self" learner
@leovaldez6280
@leovaldez6280 3 жыл бұрын
I just think of it as this
@simonmuthungu4061
@simonmuthungu4061 2 жыл бұрын
Am also looking to understand self... Hope I do
@federicopalacio5349
@federicopalacio5349 3 жыл бұрын
It's really really useful for begginers like me to have a tutorial builded from the scratch, instead of just downloading code from an external source and all of a sudden try to understand whats happening on those 50 lines of code. Thx
@DaniloSilva-pl3sq
@DaniloSilva-pl3sq 3 жыл бұрын
Nice profile picture!
@FreihEitner
@FreihEitner Жыл бұрын
I'm only up to the 45 minute point so far, but already I am very grateful for this tutorial. Thank you so much!
@littlescientist3697
@littlescientist3697 Жыл бұрын
this fucking boosted me to the next level
@rotrose7531
@rotrose7531 3 жыл бұрын
By far the best OOP python I ever found, clear, easy to understand, ensure that everything is crystal clear.
@8SecSleeper
@8SecSleeper 2 жыл бұрын
That's because you didn't look hard enough. It's terrible compared to others.
@foray3573
@foray3573 2 жыл бұрын
@@8SecSleeper then suggest a better one for learners to watch better ones.
@mgm8075
@mgm8075 2 жыл бұрын
@@8SecSleeper still havent suggested better?
@8SecSleeper
@8SecSleeper 2 жыл бұрын
@@mgm8075 If you can't find the better videos, then you shouldn't be learning programming. It's not for you.
@mgm8075
@mgm8075 2 жыл бұрын
@@8SecSleeper instead of typing all that out you could've just shared the video you claimed was better. just say you're too lazy.
@ducdao1679
@ducdao1679 2 жыл бұрын
I've been learning and coding Python for a little over a year and have never fully understood the __init__ method until I saw this video. You rock!
@electricalautomationengine9128
@electricalautomationengine9128 3 жыл бұрын
Wow, he wasn't lying . He really explains it well; you wouldn't need another tutorial .
@hammadhassankhan
@hammadhassankhan 2 жыл бұрын
Loved It! I have been in a 4-Year CS program and learned the OOP concepts in different lectures. Probably this one is the best among all the lectures/tutorials I have taken for OOP till now.
@xelvince
@xelvince 2 жыл бұрын
Best explanation on OOP on KZbin. He doesn't skip anything. It finally makes sense 😊
@stevenho9963
@stevenho9963 8 ай бұрын
i am a self taught programmer and previously ive tried to learn linked list and got totally lost and confused. i was told i should learn OOP first. my friend had a syllabus for a OOP class, but i didnt want to spend threee months on it so i went onto this video and i learned so much. took about 3-4 days digesting information. you broke down the steps in a way thats easy to digest and remember. although this topic has a lot of information, now i see all i need is to practice these concepts often and ill get it. you have explained in two hours a whole entire syllabus that would take aquarter, which is about 3 months. thank you so much
@jimshapedcoding
@jimshapedcoding 7 ай бұрын
I really appreciate this one, thank you and I am very happy I saved your time :)
@ГеворгАврорин
@ГеворгАврорин 2 жыл бұрын
Я просмотрел все 2 часа этого курса, и научился читать код, и понял общие правила ООП. То что раньше было сложно понять, понимать стало гораздо проще. Вместо повторения \ дублирования кода, можно написать код лаконично, и он будет выглядеть очень аккуратно, это очень круто. Мне жаль что на просторах интернета, на Русском сегменте, вот таких полных курсов очень и очень мало, но найти ваш канал было просто волшебно. За 2 часа, начиная от самого простого, переходя постепенно к пониманию того что происходит, с указанием что откуда наследуется и передается, в общем я очень рад что эта информация очень полезна для меня. Осталось только научиться делать это самостоятельно, и продумывать код и его логику. Жаль у нас не было уроков программирования, да и преподаватели обычно не умеют доносить информацию понятным и простым языком, объясняя сложные вещи простым языком. Благодарю вас.
@jimshapedcoding
@jimshapedcoding 2 жыл бұрын
You are welcome! :) I hope there will be more Russian lecturers in KZbin to help you learn even better!
@vinaylofi3105
@vinaylofi3105 Жыл бұрын
I finally completed these Object oriented of python, i would recommend every body to watch these to have a good grasp of concepts
@utsavbhardwaj938
@utsavbhardwaj938 2 жыл бұрын
I was trying to learn oop concepts for a very long time and I was having a very hard time learning this then found this video, still in the 1st chapter __init__ and most of the things I was having hard time with got very clear. Thanks for this, I will always remember you. FCC is doing great work finding these high quality videos .
@Anonymous-ri4mk
@Anonymous-ri4mk 7 ай бұрын
Me too everyone else was giving shitty explanation or explanation that just doesnt make sense it seems they have forgotten their target audience are intermediate level or lower and they cant understand it by the general explanation which are given to people who knows how to do oop
@alperen_101
@alperen_101 6 күн бұрын
This tutor is so understandable. He's really give the essence of the topics with short briefs. Thank you
@alperklc7782
@alperklc7782 2 жыл бұрын
1:08 "is_integer" is a float method, since the name of the written method and the float method name are the same, there is a misunderstanding as if the method is calling itself again. It was a confusing example. It took me a long time to understand and figure out what was going on. 7.0.is_integer() return True :)
@adviced8071
@adviced8071 2 жыл бұрын
same
@warrobotslovers3277
@warrobotslovers3277 2 жыл бұрын
Thank you very much . I was mulling over this doubt for a long time.
@karolinesilva4669
@karolinesilva4669 2 жыл бұрын
Thanks for this comment alper! I assumed it wasn't recursion but was scanning the comments for this confirmation.
@ПетърЦветанов-ш6с
@ПетърЦветанов-ш6с 2 жыл бұрын
Thanks, was wondering the same
@llucbusquets6266
@llucbusquets6266 2 жыл бұрын
Damn, thank you so much. I was really wondering how a recursive function could work in this case and I was looking for people equally confused in the comments. It turns out it's easier than that :D
@rutdvajrawal7933
@rutdvajrawal7933 3 жыл бұрын
20 mins in and so many concepts are made clear and so quickly and efficiently. Thanks the instructor and FCC.
@johnhrabovsky2118
@johnhrabovsky2118 3 жыл бұрын
Sir, thank you for this absolutely fantastic run through of object oriented programming. I was struggling with some of these concepts in using python to build a Django website, but this tutorial cleared up a TON of information. Very well done, I along with 100K+ others, are incredibly grateful that you took the time to put this together to clear up some confusing concepts.
@dhyutidharabandooni4830
@dhyutidharabandooni4830 6 ай бұрын
One of the BEST python tutorials i have ever seen. Most just show you the code and expect you to understand it but in this video he explains EVERYTHING thank you so much, i have learned a ton about python because of you!
@fesehaabebe-akele2684
@fesehaabebe-akele2684 2 жыл бұрын
Very practical and understandable take on OOP in python. Greatly recommended to people with a beginner level knowledge of python and need to add OOP to their python tool kit.
@Andrey-rc6wp
@Andrey-rc6wp 9 ай бұрын
20 minutes in and the gentleman has clarified all the questions I had regarding OOP. This makes so much sense.
@fadymikhaiel2370
@fadymikhaiel2370 2 жыл бұрын
The thing that most tutorials miss is an indepth explanition of the logic of how things work. Fortunately, this tutorial does not skim on explaning the logic and also giving examples of use cases. Thanks Jim!!!
@chandranshpandey1929
@chandranshpandey1929 Жыл бұрын
I think for learning oops its better to reas some basic books
@StrafesHarder
@StrafesHarder Жыл бұрын
@@chandranshpandey1929 read*
@sooyoung6679
@sooyoung6679 Ай бұрын
I am nodding my head like crazy to say yes... with tears in my eyes... i love this video... its the best!!!!!
@unpatel1
@unpatel1 3 жыл бұрын
OMG!!! I am finished only 23:30 and this so amazing!! Looks like this video is going to be in my permanent youtube storage vault!:):) I already have decided to watch it more than once. Already cleared up a few critical concepts that I was struggling with. You have an amazing explanation power.
@pointer333
@pointer333 2 жыл бұрын
Yes! I've been chipping away at it for 3 days and just finished. SO GLAD I FOUND THIS. I want the channel to know how awesome they are!
@lionelcarmont9574
@lionelcarmont9574 3 жыл бұрын
Thank you very much, For the last month I was wandering on the internet to understand OOP, with no success now it is crystal clear. Une fois encore, merci
@elijahkalii5290
@elijahkalii5290 2 жыл бұрын
This is the most comprehensive and friendly tutorial on Python OOP I have seen so far. Thanks for this Jim
@Rey-tp8jm
@Rey-tp8jm Жыл бұрын
Great explanations! I like that you clarified certain aspects of OOP that are hardly ever mentioned in other OOP courses. Thank you!
@BrannenTaylor
@BrannenTaylor 2 жыл бұрын
THANK YOU for making your font size large enough to read on a tablet. So many channels don’t do this.
@alhensouher
@alhensouher Жыл бұрын
For anyone who also installed the csv plugins but the "Table Editor" button didn't appear: you have to go to File | Settings | Editor | File Types, go to "Text", and then add *.csv to that file type. Confirm it and you're good to go. =}
@pointer333
@pointer333 2 жыл бұрын
I have to admit that when I heard the presenter's thick accent, I was worried, but I've just finished the entire video, and I must say that this was an EXCELLENT presentation. Turns out dude is very easy to understand. Speaks clearly, slowly, concisely, and precisely. Doesn't just superficially intro you to each topic--he really takes the time to explain the principles. A+! THANK YOU for taking the time to create and share this with the world! This was basically my into to object oriented programming and I really do feel like I've learned a whole lot after this 2+hr video!
@jimshapedcoding
@jimshapedcoding 2 жыл бұрын
I appreciate such a comment a lot. Working on a smooth accent has been something I am working on a lot and I am happy you found your way to complete the entire video! Keep going :)
@MrIanEntertainment
@MrIanEntertainment Жыл бұрын
@@jimshapedcoding I think your accent makes the video nicer to listen to
@aminnourmohammadi5025
@aminnourmohammadi5025 2 жыл бұрын
This tutorial was hands-down the best I've ever watched regarding the essential concepts of object-oriented programming. You clarified so many of my unanswered questions. Thanks a million!
@akhilkumar4825
@akhilkumar4825 2 жыл бұрын
Best intro to OOP so far. Explained so well. Thank you so much for this excellent course!!
@arunny9430
@arunny9430 2 жыл бұрын
Absolutely fantastic. Definitely, the best introduction to Python OOP I have seen so far.
@djholty1234
@djholty1234 2 жыл бұрын
Great tutorial. I was a bit confused when you built your staticmethod is_integer at first. But then I realized float has a method built into it also called "is_integer", which will return true if the float ends in .0. Once I figured that out it made sense to me. Hope this helps someone who is confused by the same thing
@ZsoltPal23092011
@ZsoltPal23092011 Жыл бұрын
Thank you, I have scrolled down the comments to see if someone had the same issue with this part - you helped a lot here :)
@FernandoJ-r6d
@FernandoJ-r6d Жыл бұрын
I was about to ask the same, thank you! I think it was a bad idea to name the static method 'is_integer' since there already exists a float method with the same name.
@mohanprajapati2051
@mohanprajapati2051 2 жыл бұрын
Simply perfect ! Though I was doing revision but it helped me in learning the concepts easily.
@grayleafmorgo
@grayleafmorgo 2 жыл бұрын
A perfect course if you know the general concepts but they are not clear enough. Electrifying! Good Job
@gabrielong4820
@gabrielong4820 2 жыл бұрын
the definitive follow-up guide after completing the FreeCodeCamp Scientific Computing with Python course. If you're struggling with the Budget App project, please watch this. Thanks again Jim, you're a real one.
@awosiseoluwaseun5499
@awosiseoluwaseun5499 3 жыл бұрын
The is_integer function name almost confused me. is_integer is a method on its own in python so I thought you were calling your defined function inside the function itself. I'm clear now, made me research more and I'm happy about that. An awesome video by the way, I've mastered OOP basics from this. Thanks so much.
@edhernunio
@edhernunio 2 жыл бұрын
It got me confused as well. Thanks for the clarification 👍
@ItsDaShin
@ItsDaShin 2 жыл бұрын
Oh wow. I spent like 15 minutes trying to figure out the code. Thanks! 😅
@StarFury2
@StarFury2 2 жыл бұрын
Jesus, this was super confusing. I guess he could have called his staticmethod like "check_if_is_integer" to make a difference from the inbuilt function. Super awesome video anyways!
@HereToSin
@HereToSin 2 жыл бұрын
@@StarFury2 1:09:00 One thing which you could also observe was that there were no parameters passed when calling the is_integer() {in line 45}, so no way would the is_integer method of the item class would be called, as that would require passing num parameter. But yeah, this was confusing at first glance!
@joseluizdurigon8893
@joseluizdurigon8893 2 жыл бұрын
What an absolute MONSTER! This guy knows for sure how to teach
@SurajMapariPrivate
@SurajMapariPrivate 3 жыл бұрын
He is great explainer bring him back again on this channel !!! ✨👏🔥💯
@SPARCHE
@SPARCHE 2 жыл бұрын
This is, by far, the best tutorial I've watched in a long time. Man have you got didactics for days. Congrats!
@prabhakar664
@prabhakar664 2 жыл бұрын
Watching at 0.75 X. This is by far the best tutorial on OOP. Hands Down.
@we1rdalien
@we1rdalien Жыл бұрын
Great course! This took me from having a basic knowledge of OOP to understanding the logic of how it all works much more! Excited to keep going deeper with these topics!
@innocent006
@innocent006 2 жыл бұрын
The explanation on this tutorial is very clear and to a point. I understood lots of things, which was a bit of a magic before this video. Thank you very much and keep posting fruitful videos
@jimshapedcoding
@jimshapedcoding 2 жыл бұрын
I appreciate this! Thanks
@Lady.2411
@Lady.2411 2 жыл бұрын
finished in one sitting after finishing a similar course on datacamp and I understood everything perfectly. thank you so much man
@peachgumdrop8067
@peachgumdrop8067 Жыл бұрын
The best OOP video ive ever seen. I would have failed without you LMAOO my profs could never compare.
@pkavenger9990
@pkavenger9990 2 жыл бұрын
Now i am in this video for 50 minutes and I got to say, this video is golden. This video is like if you want to digest 1000 pages of content in one video. Truly Awesome.
@zainulabdin4466
@zainulabdin4466 2 жыл бұрын
1:08:52 The name "is_integer" was a bit confusing because same method exists for 'float' class so in first IF statement num.is_integer() has nothing to do with the is_integer function that has been created in this code. That is_integer() method is pre-defined for the float class and that is only there to check if the num is a float or not and returns TRUE.
@jimbowayoutub2
@jimbowayoutub2 2 жыл бұрын
Yes. Exactly. Great tutorial but this was a flub in presentation. Thanks for clarifying.
@akhilmachaan5010
@akhilmachaan5010 2 жыл бұрын
@@jimbowayoutub2 Can you please explain this, 01:07:07 if isinstance(num, float): #Count out the floats that are point zero return num.is_integer() what happens when we return num.is_integer()
@jimbowayoutub2
@jimbowayoutub2 2 жыл бұрын
@@akhilmachaan5010 Hi. The instructor added a static class to his Item class called is_integer() that returns True if num's type is integer and false if it's a float by using the isinstance() method built into python. But that alone would still interpret a number like 5.0 as a float just because it has a decimal. He wants his method to return True in such cases. Now because num is float he can call the is_integer() method that is *built into python's float class* ( same name but different function) One is created by Jim. The other built into Python's float class. Hope that helps.
@ajinkyapotkar3439
@ajinkyapotkar3439 2 жыл бұрын
The whole concept of OOP is explained in a structured and easy to understand way. I am a beginner and learnt a lot from this. Looking forward to learn more from your videos . Thankyou
@irajesmaeili8032
@irajesmaeili8032 Жыл бұрын
Great course, I liked the order of subjects so everything made sense while learning OOP. Many thanks!
@KnotaFurry
@KnotaFurry 2 жыл бұрын
Thank you so much. I've been having such a hard time for hours trying to understanding classes and methods. This was perfect.
@danieloluwarotimi48
@danieloluwarotimi48 2 жыл бұрын
Hey, For anyone here who might be struggling with a 'NoneType' error when trying to call ur CVS file and convert it into a list, go back and make sure there are no spaces in between attribute names. Remove all extra needed spaces example: should be: name,price,quantity not: name, price, quantity
@EmilianoGalati
@EmilianoGalati 2 жыл бұрын
You saved my day!
@erosmitdelta
@erosmitdelta Жыл бұрын
YOU'RE A GOD!
@tywatkins
@tywatkins Жыл бұрын
🤩
@James24127
@James24127 Жыл бұрын
Thank you for this tutorial. I've participated in a number of courses and by far this is the best object oriented programming course I've seen.
@eckee
@eckee Жыл бұрын
This was insanely helpful. Easily understood, clear examples.
@niranjanbanda
@niranjanbanda 2 жыл бұрын
First 20 mins... Woahhhhhhhhhhhh! Got the whole init picture. Wowwww!
@infographic7907
@infographic7907 3 жыл бұрын
man it's so amazing. You are so good at explaining. Thank you soo much for get me out of the confusions. ❤️🙏🙏
@anubhav1603
@anubhav1603 2 жыл бұрын
i loved your course, great stuff. Anyone looking to learn OOP in python, watch this video straight.
@jimshapedcoding
@jimshapedcoding 2 жыл бұрын
Thank you very much
@doubando
@doubando 3 жыл бұрын
Amazing OOP training, alot of concepts clear by now for me
@IRFAN39175
@IRFAN39175 2 жыл бұрын
Great course for someone that used Python in a procedural manner and wanted to shift to a OOP approach.
@devanshjain5145
@devanshjain5145 3 жыл бұрын
I think naming that is_integer(num) method was wrong because already there exists an inbuilt method called is_integer() that can be called upon floats.... All this while I was thinking of recursion....
@-steady-8215
@-steady-8215 2 жыл бұрын
Haha. Yeah. Took some time to get it cleared for me.
@rogue8275
@rogue8275 2 жыл бұрын
I didn't understood what happened there ... To me it seems to be an infinite loop
@1mlister
@1mlister Жыл бұрын
It was at the 18:00 mark that I shouted allowed "Why has nobody else told me that!". So well explained. Thank you.
@sweetie_py
@sweetie_py 3 жыл бұрын
I'm fluent at OOP in Java and now I feel stuck when doing it in Python lol
@sisisisi6
@sisisisi6 5 ай бұрын
By far the best EXPLANATION of OOP concert I’ve watched, and I’ve watched a few. Thank you so much!
@ddelvaller
@ddelvaller 3 жыл бұрын
Thank you very much Jim, this helped me a lot to understand OOP
@motss5651
@motss5651 2 жыл бұрын
when copying the csv file in Class vs Static Methods section make sure to remove the spaces in the first row it is : name, price, quantity. It should be changed to name,price,quantity. Drove me crazy for a few minutes.
@DTDSHEFF
@DTDSHEFF 6 ай бұрын
if you see this comment. Please stop search python class course, this video is already all you need to know
@centralcodingethiopia
@centralcodingethiopia 2 жыл бұрын
I was Struggling to understand the concept of Class through tutorials, but this tutorial helped me to really understand well. Thanks a lot!
@cristiandinu2906
@cristiandinu2906 3 жыл бұрын
Hi, Thanks for posting !!! , there is a catch at least in unix ( !!! items.csv file has spaces in front of columns price, quantity which triggers an error : price=int(item.get('price')), TypeError: int() argument must be a string or a number, not 'NoneType')
@opeo5418
@opeo5418 3 жыл бұрын
Having this same error with the NoneType as well
@hkoranteng1
@hkoranteng1 3 жыл бұрын
same, but i removed the spaces from my csv file and the error went away. although now, i'm not able to see the objects in the console though. when i run the code Item.instantiate_from_csv(). it's blank after the ...python.exe ...tutorial.py. still trying to figure it out ... so not actually sure if the items in the csv are being created as objects in my program
@hkoranteng1
@hkoranteng1 3 жыл бұрын
when i run print(type(item.instantiate_from_csv())) it returns --->>> that doesn't sound right! has anyone faced a similar issue? better still, have any ideas?
@mohamedasif5871
@mohamedasif5871 3 жыл бұрын
@@hkoranteng1 It is because we are not returning anything in the instantiate_from_csv method. You should try printing Item.all to know if the ob jects has been instantiated.
@walky4158
@walky4158 2 жыл бұрын
@@hkoranteng1 Thank you mate. I was confused where I was being wrong, and I read your comment about spaces. Fixed the error and I can now proceed with the tutorial. Thanks.
@Blentux
@Blentux Жыл бұрын
I'm now halfway through, but this is an excellent video for learning OOP, always struggled with it, but this one is just great, so thanks a lot!! Learned so much from it. EDIT: I've completed the whole video by now - what a journey, thank you so much for this course!!
@prt-ql1cv
@prt-ql1cv Жыл бұрын
1:02:40 I am getting error that float() argument must be a string or a number, not NoneType
@DanushkaChanaka-z6u
@DanushkaChanaka-z6u Жыл бұрын
this is the best OOP video i have ever watched. i also got confused with the concepts used in OOP such as init,self and how to use them and what is the actual mean behind these concepts now has been revealed. thank you very much for your great content.
@smburhan6323
@smburhan6323 3 жыл бұрын
This is just the thing i was looking for... Thank you very much ❤
@epictetus__
@epictetus__ Жыл бұрын
Phenomenal teacher who taught with phenomenal speed which went above my head in phenomenal way!
@tasnimmeem1158
@tasnimmeem1158 3 жыл бұрын
Just what I needed ❤️
@thomas_mensen3080
@thomas_mensen3080 3 жыл бұрын
Same
@somnvm37
@somnvm37 2 жыл бұрын
for those who didn't understand what "self" means. All methods are written like that "some_var.method()" the "some_var" in this example is the "self", that's why it's the "0th argument"
@SurajMapariPrivate
@SurajMapariPrivate 3 жыл бұрын
Learned so much from single video thanks alot 👏✨💯🔥🔥
@barecodedreamersacademy6147
@barecodedreamersacademy6147 3 жыл бұрын
kzbin.info/door/yoFQsVztx2oHWq14nY8A6A
@htaehxela
@htaehxela 2 жыл бұрын
this made more sense to me than any other OOP tutorial I have ever watched. Thank you so much
@farazahmed1668
@farazahmed1668 3 жыл бұрын
Thank you so much for this extremely useful tutorial.
@deadangelair
@deadangelair 2 жыл бұрын
The practical way of explaining and the gradual pull into the concept was awesome. I am finally understanding. Thank you so much
@venkilfc
@venkilfc 2 жыл бұрын
What a brilliant course! Thank you :)
@igorrossetti6677
@igorrossetti6677 2 жыл бұрын
A really good explanation. But there are some unanswered questions. The most important is about "instantiate_from_csv". If I create two classes (Laptop and Phone), even if I change this method passing as argument the csv path ('laptops.csv' and 'phones.csv'), the method use always Item. print(Phone.instantiate_from_csv('phones.csv').all) print(Laptop.instantiate_from_csv('laptops.csv').all) print(Item.all) Here "Laptop" shows also the Phone data.. [Item('iPhone', 1000.0, 3), Item('Samsung', 240.0, 13), Item('Xiaomi', 10.0, 4), Item('Huawey', 22.0, 4), Item('Brondi', 35.0, 10)] [Item('iPhone', 1000.0, 3), Item('Samsung', 240.0, 13), Item('Xiaomi', 10.0, 4), Item('Huawey', 22.0, 4), Item('Brondi', 35.0, 10), Item('Fujitsu', 1000.0, 3), Item('Acer', 240.0, 13), Item('Dell', 10.0, 4), Item('Lenovo', 22.0, 4)] [Item('iPhone', 1000.0, 3), Item('Samsung', 240.0, 13), Item('Xiaomi', 10.0, 4), Item('Huawey', 22.0, 4), Item('Brondi', 35.0, 10), Item('Fujitsu', 1000.0, 3), Item('Acer', 240.0, 13), Item('Dell', 10.0, 4), Item('Lenovo', 22.0, 4)] Is this a polimorphism use case? Is there a way to avoid re-writing "instantiate_from_csv"?
@gauravmahajan3035
@gauravmahajan3035 3 жыл бұрын
Thanks!
@Natybbb
@Natybbb 9 ай бұрын
watching it now 2 yrs after it was published. Super amazing. Thanks buddy.
@SyedMohommadKumailAkbar
@SyedMohommadKumailAkbar 3 ай бұрын
Please rename the video title, it is very misleading. This maybe a good course for people who already know OOP to refresh their concepts and understand them better but is absolutely not for beginners. There is no clear guidance on *why* anything is being done, there is neither flow nor structure, just adhoc command giving and typing. As a true beginner in OOP, not once was it clarified why this is needed (in python for eg) to begin with, rather than write out flat code. As this was an assigned video for a course, I had to unfortunately drag myself through it. But everything I learned about OOP, i got from reading blogs online and other videos that actually make the effort of telling why something is being done, what the end objective is, and how writing code the way it was written here helps us do that better.
@indometalpython4969
@indometalpython4969 2 жыл бұрын
ABSOLUTELY FANTASTIC!!! Thank you so much Jim. I followed this tutorial line by line and learnt so much. I owe you this new beginning of my life.
@Simon_Alexnder
@Simon_Alexnder 3 жыл бұрын
Shalom!
@steviegillen82
@steviegillen82 Жыл бұрын
OOP has always been a sticking point for me, but thanks to this in-depth tutorial, it is all starting to make sense. Thank you FCC for posting this!
@rayyanamir8560
@rayyanamir8560 3 жыл бұрын
I prayed to God for this
@basharatmir4025
@basharatmir4025 Жыл бұрын
Thanks. Things I leaned. Assert Constructor @classmethod Cls @static method Super ()....
@Flameandfireclan
@Flameandfireclan 3 жыл бұрын
At 1:32:33 I got this error when trying to write: print(Item.instantiate_from_csv()) print(Item.all) error :in instantiate_from_csv with open("items.csv", "r") as f: FileNotFoundError: [Errno 2] No such file or directory: 'items.csv'
@alimahdili3752
@alimahdili3752 4 ай бұрын
so finally i could learn "self" OOP in python Thx sooo muchh
@ShizoMoses
@ShizoMoses 7 ай бұрын
This was absolutely excellent. Right on the point, no fluff - perfect for a refresher (or rather clarification), but I can absolutely see this being accessible to absolute beginners. Really nice, thanks a lot. :)
@jimalix6270
@jimalix6270 8 ай бұрын
Awesome video! I'm half-way into it, and I've already learned more than I learned in an entire OOP class on another platform! Thanks so much!
@amoorinet..
@amoorinet.. 9 ай бұрын
When you do not know how difficult or easy something is because you are new to it and fate makes you come across such an explanation, know that you are very lucky.
Data Analysis with Python for Excel Users - Full Course
3:57:46
freeCodeCamp.org
Рет қаралды 3,3 МЛН
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,4 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 111 М.
Python Object Oriented Programming Full Course 🐍
2:05:50
Bro Code
Рет қаралды 74 М.
Object Oriented Programming (OOP) in Python
46:37
Traversy Media
Рет қаралды 283 М.
Intro to Java Programming - Course for Absolute Beginners
3:48:25
freeCodeCamp.org
Рет қаралды 3,5 МЛН
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 314 М.
OOP in Python | Object Oriented Programming
1:45:19
Telusko
Рет қаралды 1,8 МЛН
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,5 МЛН
5 Good Python Habits
17:35
Indently
Рет қаралды 629 М.
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 14 МЛН
NestJs Course for Beginners - Create a REST API
3:42:09
freeCodeCamp.org
Рет қаралды 1,6 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН