10Clouds Interview Question

How does list comprehension work?