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

4,269 views · Published 4 May 2016 · 9:37 · Indexed 22 September 2026

Channel: HowTo · 2016 · Sports

Watch on YouTube

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.

More from this channel