+ 9

What is the need to learn oop in python?

I just what to know in which area of python oop will help me. thanks, happy coading

9th Sep 2018, 3:50 AM
Souvik
2 Answers
+ 7
When having a large amount of code, OOP can help by grouping similar objects together to make the code more DRY
9th Sep 2018, 8:01 AM
Roger Wang
Roger Wang - avatar
+ 3
OOP is very important in many cases. For example if you’re going to write a python module for some chat-bot API you will most likely be using classes to put things together. You would have a bot class, and let’s say a user class for whoever invokes the bot command. This way you can keep things looking clean and much easier to access
9th Sep 2018, 2:13 PM
shadeyg56
shadeyg56 - avatar