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

Solution: Import the 'spamwatch' module

# Add the following line to the top of your code
import spamwatch

 

For more information:
Python spamwatch