Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koenigdavidmj
on April 25, 2012
|
parent
|
context
|
favorite
| on:
Python iteration
Ah, but this is:
from itertools import izip izip(xrange(len(seq)), seq)
kbd
on April 25, 2012
[–]
And in Python 3 it's a generator with
zip(range(len(seq)), seq)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: