does python have ternary operators code example Example: python ternary statement var = [expression1] if [condition] else [expression2]