difflib — Compare Sequences — PyMOTW 3
The difflib module contains tools for computing and working with differences between sequences. It is especially useful for comparing text, and includes functions that produce reports using several common difference formats.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.