ternary operator in list comprehension python code example Example: can list comprehenios contain else ["Even" if i%2==0 else "Odd" for i in range(8)]