Y
Hacker News
new
|
ask
|
show
|
jobs
by
jfz
2980 days ago
Using i and j in loops makes code much less self-explanatory, especially when you could use "page_index" and "image_index" instead.
1 comments
lou1306
2980 days ago
Even better, replacing
for i in range(len(imgid)):
and similar lines with:
for i, img in enumerate(imgid):
would allow one to get rid of all these list accessors.
link