ternary operator with print in python code example Example: python if else short version x = 10 if a > b else 11