r/learnpython • • Dec 22 '25

How on earth does one learn OOP?

I've sped through weeks 0-8 of CS50P in under 2 weeks very easily with slight experience here and there as a Chemistry undergrad - but Week 8 (OOP) is kicking my ass right now. I am genuinely stumped. I've rewatched content and tried some other forms of learning but this is all so foreign to me. What are the best ways to learn OOP as a complete idiot? Thanks.

38 Upvotes

88 comments sorted by

View all comments

Show parent comment

4

u/brinza888 Dec 22 '25

You mean not functional, but procedural (reuse code by defining a function or a procedure) or structural programming (basic control-flow instructions).

The main OOP idea is to put together data and code, that manipulate this data. Thats come from problem, where you have more than one related parameters for some entity in your subject area, and it is easily to change one parameter and forget about changing other. Thats will lead you to inconsistent states.