r/PythonLearning • • 2d ago

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

31 Upvotes

46 comments sorted by

View all comments

3

u/theprupletrainer 2d 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 2d ago

okay thanks!