[Tutor] Trying to enter text from a file to a Dictionary
Terry Carroll
carroll at tjc.com
Sat Jan 28 21:55:06 CET 2006
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.
More information about the Tutor
mailing list