python if else one line with 2 values code example Example: one line if statement python var = [expression1] if [condition] else [expression2]