if else in 1 line with ? python code example Example: python if else one line x = 'foo' if bar else 'baz'