top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • 6 days ago
  • 1 min read

import itertools

a = [1,2]

b = itertools.count(3)

c = itertools.chain(a,b)

print([next(c) for _ in range(5)])


[Running] python3 -u "/Users/name/test/test131.py"

[1, 2, 3, 4, 5, 6]

[Done] exited with code=0 in 0.059 seconds



Try to run it.
Try to run it.














 
 
 

1 Comment


Guest
6 days ago

Try to run it.

Like
bottom of page