how to create a list with IF code example Example: list comprehension if [f(x) for x in sequence if condition]