dictionary-question

J.Jacob joost_jacob at hotmail.com
Wed Nov 21 14:58:50 EST 2001


Check out the setdefault() dictionary method...from the Library
Reference: setdefault() is like get(), except that if k is missing, x
is both returned and inserted into the dictionary as the value of k.



More information about the Python-list mailing list