How to Solve NameError: name 'mylist' is not defined -- variables
Solution: Import the 'mylist' module
To Solve the error, add the following line to the top of your code.
from variables import mylist
For more information:
Python variables mylist