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
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor