[Tutor] Would somebody kindly...

Alan Gauld alan.gauld at btinternet.com
Wed Oct 29 00:41:00 CET 2014


On 28/10/14 23:13, Clayton Kirkwood wrote:

> line either a tuple or list. The comprehension seems to act as a
> subroutine or macro

In a sense yes, that's true.

You can find another explanation of list comprehensions and other 
related functions in my tutorial (see .sig) in the Functional 
Programming topic. It has several more examples.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list