How to Solve NameError: name 'my_func' is not defined -- my_module

Solution: Import the 'my_func' module

To Solve the error, add the following line to the top of your code.

from my_module import my_func

 

For more information:
Python my_module my_func