Concept Flow - filter() function
Start with iterable
Apply function to each item
Function returns True?
No→Skip item
Yes
Keep item in result
Repeat for all items
Return filtered iterable
The filter() function checks each item in a list with a function. If the function says True, the item stays; if False, it is skipped.