"Alan Gauld" <alan.ga...@btinternet.com> 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 site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to