Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ignore first value in generator

itercars = iter(cars)
next(itercars)
for car in itercars:
    # do work
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #ignore #generator
ADD COMMENT
Topic
Name
1+2 =