1[statement if condition else statement for _ in iterable_object]
2#statement are without assignment
1In general,
2[f(x) if condition else g(x) for x in sequence]
3
4And, for list comprehensions with if conditions only,
5[f(x) for x in sequence if condition]