top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    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

Python coding.
Python coding.

 
 
 

1 Comment


Guest
Jul 13

Try to run it.

Like
bottom of page