"Lie Ryan" <lie.1...@gmail.com> wrote
for key, value in sets.items():
        for element in value:
               try:
                   lookup[element] = lookup[element].append(key)

This has the same flaw as mine. it nneeds to be

                      lookup[element].append(key)

ie no assignment, othewise you just get None stored...

HTH,


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to