How to Solve NameError: name 'data' is not defined -- opponents

Solution: Import the 'data' module

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

from opponents import data

 

For more information:
Python opponents data