map and filter takes function as input
map and filter takes function as input.
map and filter takes function as input, you can define one if it has more than couple lines using def, if the function is short and simple, typically use lambda function.
example:
Last updated