if statements python one line python3 code example Example: python if else one line x = 'foo' if bar else 'baz'