python list comprehension

preview_player
Показать описание
In this video, we have explained to you python list comprehension. By using list comprehension we can construct a list in single line of code. One of the big advantages of list comprehension is that they allow developers to write less code that is often easier to understand. We have explained the list comprehension with the help of examples that how you can get rid of this for loop and do the same task in single line by using list comprehension

#python #linux #list
Рекомендации по теме