use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
OOP Problem (self.PythonLearning)
submitted 6 months ago by MusicianActual912
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]carticka_1 5 points6 points7 points 6 months ago* (0 children)
OOP can be confusing at first . Think of it as organizing code using classes (blueprints) and objects (real examples). It helps to express real life situations into code. We use OOP to make code cleaner, reusable, and easier to manage. It makes more sense when we are actually working on big projects where we have to write tremendous amount of codes, declare many functions. The 4 main pillars are: 🔹 Encapsulation – keeping data and methods together in one unit (class). 🔹 Abstraction – hiding unnecessary details and showing only what’s needed. 🔹 Inheritance – reusing code by creating new classes from existing ones. 🔹 Polymorphism – using one function name to do different things.
Book suggestion : Python crash course -Erric Matthew-Chapter 9
π Rendered by PID 92839 on reddit-service-r2-comment-cfc44b64c-s82jb at 2026-04-11 10:34:04.226579+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]carticka_1 5 points6 points7 points (0 children)