A list comprehension and a ternary operator