How can we do Functional programming in Python?

In Functional Programming, we decompose a program into functions. These functions take input and after processing give an output. The function does not maintain any state.

Python provides built-in functions that can be used for Functional programming. Some of these functions are:

  • Map()
  • reduce()
  • filter()
  • Event iterators and generators can be used for Functional programming in Python.

    Read the full book at www.amazon.com
    Posted in Python, Python Interview Questions

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *