if statment python 1 line code example Example: python oneline if statement var = [expression1] if [condition] else [expression2]