culTest

    One of the 50 questions in this topic

    How much do you know about Python?

    What is functional programming in Python?

    Answers

    Programming that always works correctly
    A paradigm that treats computation as the evaluation of mathematical functionsCorrect
    Function-oriented programming instead of classes
    A style that only uses user-defined functions

    Functional programming is a paradigm that treats computing as the evaluation of mathematical functions, avoiding state changes and mutable data. Python supports this paradigm with first-class functions, higher-order functions (map, filter, reduce), lambdas, comprehensions, and modules such as functools and itertools. Although Python is multi-paradigm and not purely functional, these features allow functional styles to be adopted when beneficial.