Methods like filter on a Python list allow you to find items based on criteria you specify through the use of a function. However, for simple comparisons (like equality or comparison to a number), it doesn't necessarily make sense to create a function for one line of code. By using lambdas you can create the function inline without having to populate the namespace with another named item.