The map() function is a type of higher-order. This function takes another function as a parameter along with a sequence of iterables and returns an output after applying the function to each iterable present in the sequence.
The filter() function is used to create an output list consisting of values for which the function returns true.
For more details refer to https://www.edureka.co/blog/function-map-filter-reduce/
Hope this helps!