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')) 
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #Passing #function #argument #Python
ADD COMMENT
Topic
Name
3+6 =