human
I am working on the file "PythonBootCamp/Complete-Python-Bootcamp-master/.ipynb_checkpoints/Nested Statements and Scope-checkpoint.ipynb".
The first task is:
Enclosing function locals
This occurs when we have a function inside a function (nested functions)
Can you write Python program for it?
assistant
#Here is the Python program you requested.

name = 'This is a global name'

def greet():
    # Enclosing function
    name = 'Sammy'
    
    def hello():
        print 'Hello '+name
    
    hello()

greet()