> 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.