[Tutor] Iterate over multiple objects
malaclypse2 at gmail.com
Wed Oct 29 15:35:42 CET 2008
On Wed, Oct 29, 2008 at 7:30 AM, W W <srilyk at gmail.com> wrote:
> I'm trying to compare two strings because I want to find the difference.
Albert pointed you to zip so that you can iterate through the two
strings in lockstep. You may also want to investigate the python
difflib module in the standard library. It has a lot of powerful
tools for comparing texts that go beyond the simple case of comparing
two strings for single-character differences.
More information about the Tutor