List comprehension self-learning