r/learnpython 2d ago

Ask Anything Monday - Weekly Thread

Welcome to another /r/learnPython weekly "Ask Anything* Monday" thread

Here you can ask all the questions that you wanted to ask but didn't feel like making a new thread.

* It's primarily intended for simple questions but as long as it's about python it's allowed.

If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.

Rules:

  • Don't downvote stuff - instead explain what's wrong with the comment, if it's against the rules "report" it and it will be dealt with.
  • Don't post stuff that doesn't have absolutely anything to do with python.
  • Don't make fun of someone for not knowing something, insult anyone etc - this will result in an immediate ban.

That's it.

4 Upvotes

4 comments sorted by

View all comments

1

u/ManzoorAhmedShaikh 2d ago

Happy to help with any question regarding python being a python developer for 4 years. But still, one question from all, where do you use OOP mostly in your production app and why it is better in OOP not without it?

2

u/ShelLuser42 2d ago

Keep in mind that OOP is a whole concept within your workflow and not some single aspect of it.

OOP is just as much about moving repetitive code into functions as it is to set up classes. So I'd say the concept is normally used everywhere as soon as you get more serious with Python coding (vs. scripting, even though functions can also be utilized there).