T
T
TemaKam2020-11-26 09:38:20
IT education
TemaKam, 2020-11-26 09:38:20

Is OOP necessary in python?

Subject
If yes, in what cases?

I mean creating my own classes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pankov, 2020-11-26
@trapwalker

In all cases where this will make the code more readable and concise.
OOP is for people to make it easier to write more complex programs. OOP, when used correctly, allows you to isolate complexity in separate classes so that this complexity does not accumulate in one tangled tangle in one place.
Read about the principles of SOLID.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question