How to Solve NameError: name 'a_module' is not defined

Solution: Import the 'a_module' module

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

import a_module

 

For more information:
Python a_module