Skip to content

Comment on Stack Overflow is documentation, not Q&Aparent

Comments

tried in one famous doc site: Python search "for key value"

We get a more generally worded result only at position #12 (vs. #1-2 in a search engine)

And then see the excessive verbiage (though admittedly not the exagerrated 20,000)

The for statement in Python differs a bit from what you may be used to in C or Pascal. Rather than always iterating over an arithmetic progression of numbers (like in Pascal), or giving the user the ability to define both the iteration step and halting condition (as C), Python’s for statement iterates over the items of any sequence (a list or a string), in the order that they appear in the sequence. For example (no pun intended):

Indeed, the difference to Pascal is what people are looking for as well as pun clarifications obscuring a single short sequence of substance

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.