Python filter function

preview_player
Показать описание
Subscribe to my youtube channel
List filtering
We have a list of integers. It is required to remove all even elements. A beginner in Python programming would write like this:
beginner python.
Very simple, isn't it? But the code takes 5 lines, contains two levels of indentation and does a completely trivial thing. You can reduce the size of the code by using the filter function
Рекомендации по теме