Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Object-Oriented Python Inheritance Super-Duper!

Joshua Lewis
Joshua Lewis
2,107 Points

Not picking up OOP since dunders.

I can't seem to grasp the concept in this course no matter how many times I rewatch them I just don't understand whats going on. Kenneth is a good teacher but he's not really breaking it down too well for me here. I've been having trouble keeping up since I started object-oriented Python and I've been stuck for about a week. Has anyone else had this problem with learning? Should I power through to the next Python course?

renato franchitto
renato franchitto
7,227 Points

I'm struggling too. One moment I understand a while after I don't know what I'm doing! It's pretty abstract at first but seems little by little the fog is clearing a bit. I'm fighting a week already full time. I think this is not a topic that can be digested in few days regardless what people says... bla bla bla..."I've learned python in 2 weeks" etc... without previous knowledge of other programming languages will take time to memorise the concepts. I remind everytime to myself that this is a marathon, not a sprint. I'm reading as well First head "learn to code" VERY good but also I set the goal to terminate python beginner and intermediate tracks here on treehouse (+ flask, web scraping and panda). I'll try to do all :-)

Joshua Lewis
Joshua Lewis
2,107 Points

I appreciate that input Renato! That makes me feel a little better about taking it in at a steady pace

Hi Joshua - I'm sorry this is confusing. We're actually considering breaking this Course up or changing it :(

Joshua Lewis
Joshua Lewis
2,107 Points

Hey Ryan! I really appreciate you reaching out. I think that would really help a lot. There's so much information that is so different from the previous courses that its hard not to feel overwhelmed.

Keith Griffin
Keith Griffin
4,833 Points

If you're having trouble understanding OOP I would suggest watching corey shafer's videos on youtube. Here is his video explaining inheritance and super(). It's much easier to understand than these videos https://www.bing.com/videos/search?q=object+oriented+python+corey+shafer&docid=608046444226609579&mid=68BB3B762BA2C87E830668BB3B762BA2C87E8306&view=detail&FORM=VIRE

Joshua Lewis

Hi Joshua,

Don’t give up! I also just started learning Python and sometimes I don’t get anything and then suddenly something makes klick The question is, what exactly are you struggling with?

I will try to explain what OOP means to me in a very abstract way maybe this might help:

  • Think about languages and programming being about conceptualizing or verbalizing information (information alway needs to be structured in some kind of way)
  • Python conceptualizes and structures information around β€žobjectsβ€œ and their description/ possibilities (through functions, attributes, classes for example)
  • It is as if you would describe the world by β€žthingsβ€œ and then explain what these things look like (attribute) and what they can do (functions/methods). E.g. a person (object) looks like (attribute)… and can walk, talk etc. (methods)

Are their any specifics you do not understand? For example:

  • dunder methods (like name or init) are just special, predefined methods
  • instance -> I think of it as a temporary β€žcopyβ€œ of the class created specifically for the object calling it; therefore the instance for an object entails the info from the class, but can be extended with further attributes for example
Joshua Lewis
Joshua Lewis
2,107 Points

Thank you guys so much for the feedback and help!

3 Answers

Devin Lane
Devin Lane
4,575 Points

I'm working through this section while accepting that I'm not understanding everything. I'm using a lot more outside resources in this section compared to others.

Ryan Carson I would suggest breaking this course up into much smaller, slower sections with much clearer examples that build incrementally, minimizing the amount of new information presented in each video/code challenge. I sense this course would work really well for people who have a solid programming foundation.

Joshua Lewis
Joshua Lewis
2,107 Points

I totally agree with your suggestion on breaking up this course into smaller sections! I am also using an outside source to sort of work my way back to OOP and its helping

Ryan Carson Thank you very much for taking this step. I was really frustrated while studying OOPS, luckily I got some content online to restore my confidence to continue my learning. I would be honest to admit the fact that I didn't return to the treehouse for two weeks after the OOPS course.

Joshua Lewis: you can consider going through Telusco python OOPS video on youtube, it will give you very basic understanding with some amazing examples, and once you are done with his video you can switch to Corey Schafer youtube video for python OOPS Tutorial. It will certainly help you to understand the OOPS Concept with "relevant" examples.

Joshua Lewis
Joshua Lewis
2,107 Points

I really appreciate all the feedback and suggestions! Those videos should definitely help me.

Joshua Lewis
Joshua Lewis
2,107 Points

Elena Sefranek I really appreciate you helping break it down a little bit it helps. The dunders were one of the things I did not understand at all

renato franchitto
renato franchitto
7,227 Points

I've found javascript course much better realised, much more usage of animation and visuals.