Functional programming question | Sololearn: Learn to code for FREE!


Functional programming question

Hi , I got stuck , can you please explain what does "function(function,argument)" does in the following example Def any(function,argument): return function(function, argument)

5/16/2019 5:38:46 PM

Parvesh Khatri

2 Answers

New Answer


Parvesh Khatri function "function" is called with "function" and "argument" as arguments. remember functions are first class entities in python so you can pass functions as arguments.


Thanks a lot man.