Create function by a function
def create_func():
def internal():
print("Hello world")
#internal()
return internal
func = create_func()
#internal()
func()
Hello world
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def create_func():
def internal():
print("Hello world")
#internal()
return internal
func = create_func()
#internal()
func()
Hello world