[Tutor] construct

Eric Walker ewalker at micron.com
Fri Nov 4 19:20:39 CET 2005


All,
Whats the construct that allows to loop through a list and perform an action? 
you also can add a test at the end. something like myfile = [print name for 
name in yourlist, if ...]
I need to look up how to use the test command and I forgot the name of the 
construct.


Thanks..


More information about the Tutor mailing list