YASH Technologies interview question

How to do List comprehension in Python?