human
I am working on the file ".ipynb_checkpoints/Lecture4-checkpoint.ipynb".
The first task is:
Lets look at memory locations of the functions.
Can you write Python code for it?
assistant
#Here is the Python code you requested.

def outer(func):
    def inner(*args):
        "Inner"
        print 'Decorating...'
        ret = func()
        ret += 1
        return ret
    print inner.__doc__, inner
    return inner

def foo():
    "I'm foo"
    return 1

print foo.__name__, foo

decorated_foo = outer(foo)

print decorated_foo.__name__, decorated_foo