PYTHON CODING
- waclaw_koscielniak

- Jul 13
- 1 min read
def values():
for i in range(10):
yield i
filtr = filter(lambda x: x % 2 == 0, values())
print(list(filtr))
[Running] python3 -u "/Users/name/test/test74.py"
[0, 2, 4, 6, 8]
[Done] exited with code=0 in 0.051 seconds



Try to run it.