Python Tutorial – Filter and Reduce Function

In this Python Programming video tutorial you will learn about filter and reduce function in detail.

we can see the advantage of the lambda function when it is used with the some built in functions like map reduce filter.

filter function will filter the element of the iterables based on some function.
syntax is filter(function,iterable)
this is an inbuilt function so it is faster.

reduce function will reduce a iterable to single element using some functions, this function can be used when we want to do some computation on list or tuple.
syntax is reduce(function,iterable)

In python 3 reduce function is defined in functools module, so to use reduce function we need to import that module.

For more free tutorials on computer programming


Xem thêm bài viết khác:


  1. 3:55
    Can we make this with list comprehension right?…

  2. I'm in love with her now . She is so cute . Sadly couldn't find her pic anywhere

  3. Thanks mam👍 ur voice is soo sweet

  4. excellent.. Madam…
    Can you do some projects based on python?

  5. It would have been good presentation if you did it in Jupyter Notebbok

  6. If I was a judge on The Voice, 
    I wouldn’t turn my chair around for you…until you’ve sung the entire song

  7. Mam can I use this methods in sublist like a=[[1,3,4],[2,7,8,9]]

  8. As usual this tutorial is also Awesome. Able to learn very easily. Can u please give the URL or any tutorial where we can learn many Python Program from the point of beginners level.

  9. Shakht rehna mushkil hai 😉

  10. I can almost read your writing. 🙂

  11. Hello, what is is difference between Sequence and iterables ? Are they same? If difference, we use only Sequence for map function? Thanks

  12. Your voice is so cute ..😍😍😍

  13. nice voice and nice explaination

  14. Please mam…make video on Decorator,Generator…

Leave a Reply

Your email address will not be published. Required fields are marked *