On Wed, Jan 14, 2009 at 11:25 AM, bob gailer <bgai...@gmail.com> 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 - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor