r/PythonLearning • • Oct 28 '26

I don't understand OOP

So i am a teen learning python, and i have learnt about classes, methods and objects, but i don't understand OOP, like what is it, where do we use it?

Please help mee

33 Upvotes

50 comments sorted by

View all comments

3

u/theprupletrainer 29d ago

Object Oriented Programming (OOP) is a mindset you follow to structure your code using classes.

You use it when you start to see related things between your code. A class makes you group variables and methods, and OOP makes you think about how different classes connect and work together.

Its useful for maintenance and scalability in applications

If you want to learn more, you can read about class associations and relationships.

1

u/Defiant_Meal1898 29d ago

okay thanks!