The iteritems function returns an iterator over the key and value pairs in a Python dictionary
>>> wordz = {"school" : "schule", "weather" : "wetter"}
>>> for key, value in wordz.iteritems():
....... print key, "=", value
school = schule
weather = wetter
Sunday, October 15, 2006
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment