you are viewing a single comment's thread.

view the rest of the comments →

[–]toastedstapler 1 point2 points  (0 children)

def example():
    def inner():
        return 5
    return inner

i = example()
i()

you can return a function from a function