Why you learn oop in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

30th Sep 2017, 1:51 PM
Kevin AS
Kevin AS - avatar
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.
30th Sep 2017, 4:06 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
Because others say "oop is an important thing to learn".
30th Sep 2017, 2:04 PM
Funny Gamer
Funny Gamer - avatar
+ 3
Because exist many languages based on oop.
30th Sep 2017, 2:05 PM
Funny Gamer
Funny Gamer - avatar
+ 2
@kuba Siekierzynski that is the answer i need.thnx
30th Sep 2017, 4:15 PM
Kevin AS
Kevin AS - avatar
+ 1
Try creating a GUI without.
30th Sep 2017, 8:02 PM
1of3
1of3 - avatar
+ 1
Because the main paradigm of Python is OOP so real power of this language is about this abstraction
30th Sep 2017, 8:47 PM
Vitoko
Vitoko - avatar