Re: [Tutor] WHAT IS THE DIFFERENCE BETWEEN FILTER AND REDUCE FUNCTION

2008-09-24 Thread Steve Willoughby
Warning: this is going to look *a lot* better if you view it in a fixed-width font so things line up properly. Both functions apply a function to a list of values, but they do so in different ways. filter() applies a function to each element of a list in turn, returning a new list containing

[Tutor] WHAT IS THE DIFFERENCE BETWEEN FILTER AND REDUCE FUNCTION

2008-09-23 Thread sudhir . kumar
___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor