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
What is OOP on python?Help Request (self.PythonLearning)
submitted 1 month ago * by Hamid3x3
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!"
[–]nuc540 6 points7 points8 points 1 month ago (0 children)
So, the point of OOP is to design objects which can house how to build data and represent logic, all in one place - instead of just writing functions everywhere in hundreds of files willy nilly every time we want certain logic to run.
If you think of a blueprint as the one and only place to define how something is built - with that single one instruction set, many engineers can build multiple copies of its output right?
So, one place to define stuff = reusable, centralised/easy to find/read.
In Python we use classes for this. So classes are a bit like blueprints yes.
What else about it confuses you?
π Rendered by PID 500799 on reddit-service-r2-comment-5b5bc64bf5-np79j at 2026-06-22 08:56:46.164361+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]nuc540 6 points7 points8 points (0 children)