[Tutor] print items in a list...

Spencer Parker inthefridge at gmail.com
Thu Apr 16 19:37:35 CEST 2009


I have a script that is putting elements into a list.  Now instead of adding
a for blah in blah statement...is there an easy way to print out the
elements in a list that is similar to this?  I don't have an absolute length
on the size of the list either since it changes depending on what I am
searching for.  I have it finding the elements through a regular expression
and then putting those into a list.  Separate lists for each item I am
searching for...if it find this put it into this list...else put into this
list.  Then I want to write each list to a text file.  trying to clean up
messy code for the most part.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090416/59049ce5/attachment.htm>


More information about the Tutor mailing list