Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jfz
· 8y ago · 0 comments
Using i and j in loops makes code much less self-explanatory, especially when you could use "page_index" and "image_index" instead.
Comments
[–]
lou1306
8y 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.