Exercise: Nested Function Naming

The following code contains a mistake. Fix it so the nested function is called correctly, and the message Hello World is displayed.
def outer_func():
def func():
print('Hello World') print_msg() outer_func() # expected output: 'Hello World'
Python
Setting up Python environment...
Output