human
I am working on the file "Lecture4-Main.ipynb".
The first task is:
Python uses @ to represent foo = outer(foo). The above code can be retwritten as follows:
Can you write Python program for it?

What is a the Python program you requested?
assistant
#Here is the Python program you requested.

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

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

print foo()