Y
Hacker News
new
|
ask
|
show
|
jobs
by
monochromatic
4874 days ago
I've seen it before, but it's a little jarring. Not sure what's wrong with just using i.
2 comments
jdiez17
4873 days ago
It says explicitly that you don't care about that value. If you used i, for example, you wouldn't know whether the loop depended on the iteration number.
link
monochromatic
4873 days ago
Yeah, I get it. And that's a useful thing to do, I guess. It just seems a little... unpythonic.
link
randomsearch
4873 days ago
To avoid unused variable warnings.
link