shorthand if else with for loop python code example Example: short if else in python x = 10 if a > b else 11