[Tutor] problem loading and array from an external file

Alan Gauld alan.gauld at btinternet.com
Thu Aug 12 01:59:39 CEST 2010


"Bill Allen" <wallenpb at gmail.com> wrote

> second method today on my own.  That third method is fascinating.  I
> have not heard of "list comprehension" before.  That must be unique
> Python lingo.  What is the principle behind that?

Its not unique to Python, Haskell had it first.
It is based on mathematical set notation, you can define a set of
numbers using a (somewhat) similar construct.

You will find a basic description in the Functional Programming
topic of my tutorial.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/




More information about the Tutor mailing list