"Bill Allen" <walle...@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/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to