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