Object Oriented Programming

What is Object Oriented Programming?

Object Oriented Programming (OOP) allows programmers to create objects that have methods and attributes.

The methods could be called after objects such as list, string and dictinary are defined. These methods act as functions that use the object's information and the object itself to return results, or change the current object.


Such methods include appending to a list, or counting the occurences of an element in a tuple. OOP allows users to create their own objects. The general format could be confusing when first encountered, and its usefulness may not be completely clear at first. In general, OOP allows programmers to create code that is repeatable and organized.

As Python codes become larger, functions by themselves aren’t enough for organization and repeatability. These repeated objects and tasks can be defined with OOP to create code that is more usable.