10Clouds interview question

How does list comprehension work?