+ 2
Why you learn oop in python?
i mean, class and def is not so much different. so whether the oop is an important thing to learn? why?
6 Answers
+ 10
Think of anything in Python as an object, belonging to a class. 1 belongs to int class, "abc" to string and [3, "53", (5,9)] to list class. Everything is an object.
Now, those are pretty simple classes, I would say basic. And oop allows you to create your own classes of objects, your own data types. And you then want to define methods which can be applied to them. Understanding this is very important, as huge power comes with it.
+ 3
Because others say "oop is an important thing to learn".
+ 3
Because exist many languages based on oop.
+ 2
@kuba Siekierzynski that is the answer i need.thnx
+ 1
Try creating a GUI without.
+ 1
Because the main paradigm of Python is OOP so real power of this language is about this abstraction