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

+1

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

+3

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.

+1

Thanks a lot man.