Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Passing function as an argument in Python

def shout(text): 
    return text.upper() 
    
print(shout('Hello World')) 
    
yell = shout 
    
print(yell('Hello')) 
 
PREVIOUS NEXT
Tagged: #Passing #function #argument #Python
ADD COMMENT
Topic
Name
3+9 =