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