[Tutor] adding dictionary values

Chris Fuller cfuller084 at thinkingplanet.net
Fri Mar 20 14:02:21 CET 2009


Oops! The dictionary iterates over keys, not values as I stated (and 
demonstrated by your working code).  Consequently, the example I gave could 
be more succinctly expressed by:
sa = set(a)
sb = set(b)

Sorry for the error.
Cheers


More information about the Tutor mailing list