DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+6 =
Submit