On Wed, Jan 14, 2009 at 11:25 AM, bob gailer <[email protected]> wrote: > How many ways are there in Python to go thru a list (and apply a function to > each element)? The ones I know are: > while > for > list comprehension > map()
filter() is more appropriate than map() for this problem generator expression itertools functions Kent _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
