4 lines
96 B
Python
4 lines
96 B
Python
numbers = list(range(1, 21))
|
|
|
|
result = filter(lambda x: x % 2 == 0, numbers)
|
|
print(list(result)) |