[Tutor] Problems with partial string matching

Josep M. Fontana josep.m.fontana at gmail.com
Mon Nov 1 20:38:06 CET 2010


> The only time year is bound is in the previous loop, as I said.  It's the
> line that goes:
>     name, year = line.strip.....
>
> So year is whatever it was the last time through that loop.

OK, this makes sense. Indeed that is the value in the last entry for
the dictionary. Thanks a lot again.

Josep M.


More information about the Tutor mailing list