Closure Function Example In Python Code