3 lines
97 B
Python
3 lines
97 B
Python
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
|
a= list(filter(lambda x: x % 2 == 0, numbers))
|
|
print(a) |