On Sat, 28 Jan 2006, Kent Johnson wrote: > I find simple list comps far easier to read and write than the > equivalent for loop, and they fit the way I think about problems...
I don't know if my experience is typical, but I found list comprehensions difficult to get. There's something, maybe about the syntax, that my intuition resists. Once I got it, though -- after maybe three attempts -- it stuck very well, and I like them better than their equivalent for-loops. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor