Quick actions

cmd+k|ctrl+k

Navigation

Languages

filter example 

Snippet info

Language

Python

Visibility

public

Author

abdlkdrgndz

Created

2021-07-16T11:00:15.864514Z

Updated

2021-07-16T11:00:15.864514Z


listing = [0,1,2,3,4,5,6,7,8,9,10]

result = filter(lambda x: x % 2 == 0, listing)
print(list(result))
INFO