Learn about list comprehension in Python. List comprehension is the process to create a new list in python from the existing list or the existing iterables. List comprehension is more compact and faster than normal functions and loops for creating list.

Using List comprehension, we can create a new list from other lists in just one line by simply putting the expression within the square brackets which is executed for each element along with the for loop to iterate over each element.

Subscribe : https://www.youtube.com/channel/UC-FZ9Vs5uXEAwcmrOoKoCjA

#python

Learn about list comprehension in Python
1.70 GEEK