Iterating over the data items in a dict.

Oleg Broytmann phd at
Mon Nov 6 18:20:23 CET 2000

On Mon, 6 Nov 2000, Syver Enstad wrote:
> I think you can do it like this:
> for key, value in dict.items:

for key, value in dict.items(): # it is a function - call it!

     Oleg Broytmann              phd at
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-list mailing list