python only if in single line code example Example: python single line if new_value = value_when_true if condition else value_when_false