How to Solve NameError: name 'is_prime' is not defined -- num_tool

Solution: Import the 'is_prime' module

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

from num_tool import is_prime

 

For more information:
Python num_tool is_prime