Programming Paradigm is a way to classify programming languages based on their features. One language can be classified into multiple paradigms.
Python programming:-
- Functional
- Imperative
- Procedural
- Object oriented programming.
Procedural or procedure oriented programming- In this program step-by-step instructions are written in a logical order. If programming is complex logic broken into smaller but independent and reusable blocks of statements called function.
Object oriented programming- In this program step-by-step instructions are written in a logical order. In OOPs, we divide the things into objects.
Essential features of object oriented programming are:-
- Data Encapsulation
- Inheritance
- Overriding
- Polymorphism