Python Tutorial - Filter and Reduce Function

Published: 06 January 2018
on channel: Amulya's Academy
45,272
958

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
  / amulsacademy  
  / amulsacademy  


On this page of the site you can watch the video online Python Tutorial - Filter and Reduce Function with a duration of hours minute second in good quality, which was uploaded by the user Amulya's Academy 06 January 2018, share the link with friends and acquaintances, this video has already been watched 45,272 times on youtube and it was liked by 958 viewers. Enjoy your viewing!