Python Object Oriented Programming
Python is a multi-paradigm programming language. Meaning, it supports different programming approach. One of the popular approaches to solve a programming problem is by creating objects. This is known as Object Oriented Programming (OOP).
An object has two characteristics:
Let’s take an example,
Peacock is an object
The main advantage of OOP in Python focuses on reusable of the code. This concept is also known as DRY (Don’t Repeat Yourself).
In Python, the concept of OOP follows some basic principles: