Python Tutorials # 6 : Use of range(), filter(), map() and reduce() functions

preview_player
Показать описание
range() is used to generate a list automatically. You need to specify two number and list will be generated.
filter() function is used to fetch specific elements from list on the basis of specified logic.
map() function used to invoke a function over a list. That function will be called for every element of list.
reduce() function will call function with elements of list and replace them with returned value. This process if repeated until there is only one element left.
Рекомендации по теме
Комментарии
Автор

Thank you so much, but i dont understand the exact use of reduce() function, Please explain it with another example

koteswararaogudla