Function Python

def f1():
    x = 88
    def f2():
        print x
    return f2
action = f1()            # make, return function
action()                 # call it now: prints 88