Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python function as parameter

def functionCreator(txt):
    def createdFunction(newTxt):
        return txt + " " + newTxt
    return createdFunction

print(functionCreator("hello")("world"))
 
PREVIOUS NEXT
Tagged: #python #function #parameter
ADD COMMENT
Topic
Name
9+4 =