David Eppstein <eppstein at ics.uci.edu> writes: > > > > for i in 0 .. len(sequence)-1: > > This is very common in C, but is it so common in Python? > Isn't it usually more idiomatic to do > for item in sequence > ? Sometimes you want to use the index in the loop. Maybe the loop syntax should be extended somehow to easily let you do that.