"Alan Gauld" <[email protected]> wrote
Oops! Should be:
def findDict(value, dictList):
for dct in dictList:
if dct.get('code', '') == my_code
if dct.get('code', '') == value
return dct
HTH, -- Alan Gauld Author of the Learn to Program web sitehttp://www.alan-g.me.uk/
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
