Instead of write a for...in loop in multiple line in python, you can use list comprehension to create list and initialize it in more compact way. List comprehension helps you to keep your program clean.
It also allows to filter the items before adding item to list.
#python #pythontutorial #pythonprogramming