if in one line as th econdition in the pytrhon code example Example: one line if statement python var = [expression1] if [condition] else [expression2]