how does condition work in python list comprehension code example Example: list comprehension python with condition [f(x) if condition else g(x) for x in sequence]