Call a function defined in another function

No, unless you return the function:

def func1():
    def func2():
        print("Hello")
    return func2

innerfunc = func1()
innerfunc()

or even

func1()()

Leave a Comment