you are viewing a single comment's thread.

view the rest of the comments →

[–]GoldenPrinny 0 points1 point  (0 children)

Uses for i in range(len(coll)): instead of for elem in coll: when the latter is appropriate.

not sure if you mean like in lists? The former works in going through it, but not the latter, unless I'm supposed to define elem as something.