Create function by a function



examples/closures/create_func.py
def create_func():
    def internal():
        print("Hello world")
    #internal()

    return internal

func = create_func()
#internal()
func()

Hello world