On Mar 24, 8:17 am, [EMAIL PROTECTED] wrote: > I'm looking for a cool trick using generators. Know any exercises I > can work?
Simple one the comes to mind is flattening a list: >>> list(flatten([1, [[2], 3], [[[4]]]])) [1, 2, 3, 4] >>> HTH, -- Miki <[EMAIL PROTECTED]> http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list