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
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial - Filter and Reduce Function durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Amulya's Academy 06 janvier 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 45,272 fois et il a aimé 958 téléspectateurs. Bon visionnage!