python inline for loop with if condition code example Example: how to perform inline if in python expression_if_true if condition else expression_if_false