Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

closure

def say():
    greeting = 'Hello'

    def display():
        print(greeting)

    display()
Code language: Python (python)
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #closure
ADD COMMENT
Topic
Name
2+3 =