>>> def a(x): def b(y): return x+y return b
>>> a(1)(4)5>>> bTraceback (most recent call last): File "<pyshell#33>", line 1, in <module> bNameError: name 'b' is not defined
>>> a(1)<function a.<locals>.b at 0x0000024F5F75EA60>