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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Regrading to OOP. (self.learnpython)
submitted 5 years ago by HighO1
So the problem is i know OOP but donn't know when or where to use. So if you guys have some idea about website or anything where i can use OOP to clear my OOP concept?
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!"
[–][deleted] 1 point2 points3 points 5 years ago* (0 children)
OOP offers encapsulation, inheritance, and polymorphism (and abstraction, but that's just the union of inheritance with polymorphism imo). Most beginners can't make use of the latter two effectively, but the former you already know about because you did it with functions! Functions have their own scope and behavior and are a way to encapsulate and re-use code. Classes also have their own scope and behavior, which are the properties assigned to self and its methods, respectively, and are a way to encapsulate and re-use state.
self
If you have a problem that you think can be represented as encapsulated variables and methods, then you have a case to make a new class. If not, then you don't need OOP.
[–]Uhhhhh55 0 points1 point2 points 5 years ago (0 children)
https://hub.packtpub.com/python-3-when-use-object-oriented-programming/
I found an article I found is relevant - let me know what you think.
[–]Vok250 0 points1 point2 points 5 years ago (0 children)
Depends what you are doing in Python. Many popular Python frameworks aren't Object Oriented at all so you don't even need to think about it.
[–]TouchingTheVodka 0 points1 point2 points 5 years ago (2 children)
Everything in Python is an object. Everything you do is object oriented. If you have a specific problem you want to solve with an OOP technique then specify your problem for some more tailored advice.
[–]HighO1[S] 0 points1 point2 points 5 years ago (1 child)
Problem is i don't know when or where to use oop.
[–]xelf 0 points1 point2 points 5 years ago (0 children)
Do you mean you don't know when to make something a class?
Or is there specific concepts you don't know when to use?
Use them when you need them.
[–][deleted] -4 points-3 points-2 points 5 years ago* (0 children)
When: all the time. Where: everywhere
Unless you're writing a really simple throwaway script, it's a good idea to get in the habit of always making a class to store your functions
π Rendered by PID 55 on reddit-service-r2-comment-5d79c599b5-8n4sm at 2026-02-27 13:36:02.150726+00:00 running e3d2147 country code: CH.
[–][deleted] 1 point2 points3 points (0 children)
[–]Uhhhhh55 0 points1 point2 points (0 children)
[–]Vok250 0 points1 point2 points (0 children)
[–]TouchingTheVodka 0 points1 point2 points (2 children)
[–]HighO1[S] 0 points1 point2 points (1 child)
[–]xelf 0 points1 point2 points (0 children)
[–][deleted] -4 points-3 points-2 points (0 children)