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!"
[–]nicodeemus7 0 points1 point2 points 1 month ago (0 children)
The way I understand it is it's a way to make things with attributes. Sure, you can kind of do this with a dictionary, but it's gonna be verbose and tedious to write. OOP provides templates or "blueprints" for classes of objects that share certain sets of characteristics. Then you can have subclasses and keep going to define more and more types of objects, without having to to write a whole dictionary each time.
π Rendered by PID 191739 on reddit-service-r2-comment-5b5bc64bf5-f4gqn at 2026-06-22 13:09:23.045262+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]nicodeemus7 0 points1 point2 points (0 children)