<filename>pyProj/1.py<gh_stars>0
def fun1(a):
    x = a * 3

    def fun2(b):
        nonlocal x
        return b + x

    return fun2


test_fun = fun1(4)
print(test_fun(7))
<filename>pyProj/1.py<gh_stars>0
def fun1(a):
    x = a * 3

    def fun2(b):
        nonlocal x
        return b + x

    return fun2


test_fun = fun1(4)
print(test_fun(7))