python3 list comprehension if code example Example: list comprehension if [f(x) for x in sequence if condition]