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