THIS IS A TIMESAVER! #shorts #python #programming #coding

preview_player
Показать описание
Use the filter() function to filter out lists in your next Python project!

Subscribe for more such Python coding tips and tricks!

#python #code #howto
Рекомендации по теме
Комментарии
Автор

list(filter(lambda x: x>4, items))

rikhilsingh
Автор

[x for x in items if x is > than 4]

immanuelsuleiman
Автор

Good content, however we can write a lambda fun in this scenario in filter itself like filter(lambda x :x>4, items)

pavankumar-nimy