Answers for "python geet second item in generator"

0

python geet second item in generator

>>> gen = (x for x in range(10))
>>> index = 5
>>> next(itertools.islice(gen, index, None))
5
Posted by: Guest on October-27-2021

Code answers related to "python geet second item in generator"

Python Answers by Framework

Browse Popular Code Answers by Language