Create internal function



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


func = create_func()
internal()

Hello world
Traceback (most recent call last):
  File "create_internal_func.py", line 8, in <module>
    internal()
NameError: name 'internal' is not defined