On Fri, 4 Nov 2005, Eric Walker wrote:
> 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. Hi Eric, I think you're looking for list comprehensions. Here you go: http://www.python.org/peps/pep-0202.html If you have more questions, please feel free to ask! _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor