On which paradigm Python good at? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

On which paradigm Python good at?

if python is a multi-paradigm language, so which one should i use oop, functional, procedural or imperative. Like java has only oop style at which it is fully good. some say python is not pure functional language. then on what way should i use it?which paradigm python is for?what is the main python style where it is well functioned?

27th May 2018, 10:04 AM
Pratham
Pratham - avatar
1 Answer
+ 9
It depends on the problem you want to solve. Functional programming can be handy when you are dealing with mathematical problems, OOP for problems which can be represented as real-life objects, procedural/imperative for problems whose solution can be easily listed as steps one after another, etc. Multi-paradigm programming languages let you decide your way of solving a problem. There is no "main style", only popular paradigms. * You can do functional programming and procedural programming with Java. It's a multi-paradigm language as well.
27th May 2018, 10:41 AM
Hatsy Rei
Hatsy Rei - avatar