DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python geet second item in generator
>>> gen = (x for x in range(10)) >>> index = 5 >>> next(itertools.islice(gen, index, None)) 5
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#geet
#item
#generator
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit