how to make for and if statement in one line code example Example: one line if statement python var = [expression1] if [condition] else [expression2]