I'm a fan of Python's conditional expressions.
foo = bar if qux is None else baz
They're particularly interesting when combined with comprehensions. ['a' if i % 2 == 0 else 'b' for i in range(10)]
Though this particular example can be expressed much more concisely. ['a', 'b'] * 5