How to Solve NameError: name 'RandomWord' is not defined -- RandomWordGenerator

Solution: Import the 'RandomWord' module

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

from RandomWordGenerator import RandomWord

 

For more information:
Python RandomWordGenerator RandomWord