Introduction
List comprehension with condition helps you create a new list by picking only the items you want from another list, making your code shorter and easier to read.
When you want to filter out unwanted items from a list.
When you want to create a list of squares of only even numbers from another list.
When you want to quickly make a list of words that start with a certain letter.
When you want to transform items but only if they meet a certain rule.