which language is best for functional programming…
Python is not a purely functional language. Partly for pedestrian reasons, that it has a whole lot of things that imperative / OO languages have that FP explicitly eliminates (in order to get other virtues). And partly because “purity” has a specific technical meaning in the context of FP, and Python doesn’t have it.
However it ISN’T a real functional language and there are many things in proper FP languages that Python doesn’t have and which you’ll need to understand and master to really get good at FP.
For example, you can write recursively in Python. But you need your compiler to optimise tail-recursion in your language to make it a viable substitute for iterative loops in terms of performance. Without this optimisation you’ll just fill up the stack if you try to process any long list.
Similarly, being able to explicitly define functions which create closures is one thing. Having the ability to curry any function into a closure on the fly makes Haskell a very different experience. You think about your functions in very different ways.
Pattern-matching arguments can make code much more concise.
Take a look at this :
Best language for functional programming :
To sum it up :
Python isn’t very good for functional programming.
Best for functional programming - Haskell, Scheme, F#, Clojure, Scala, OCaml/SML, Erlang, Elixir.
No python isn’t a functional programming language, rather python is object oriented programming language.
Python is a fast growing language.In my institute our juniors are having proper classes of python rather than C++,which I was taught.
Rest make use of google to know about functional programming.
Python is not functional programming language. Neither it is fully object oriented language.